<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Path::Tiny - File path utility - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Path-Tiny - MetaCPAN" href="https://metacpan.org/dist/Path-Tiny/releases.rss" />
        <link rel="canonical" href="./Path::Tiny.html" />
        <meta name="description" content="File path utility" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Path::Tiny" />
<meta name="twitter:title"       content="Path::Tiny" />
<meta name="twitter:description" content="File path utility" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Path::Tiny.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Path-Tiny was released.">
      <span class="relatize">01 Dec 2022 16:37:45 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Path-Tiny">Path-Tiny</a>
  </li>
  <li>
    Module version: 0.144
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Path-Tiny/source/lib/Path/Tiny.pm">Source</a>
    (<a href="https://metacpan.org/dist/Path-Tiny/source/lib/Path/Tiny.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Path-Tiny/source/lib/Path">Browse</a>
    (<a href="https://metacpan.org/dist/Path-Tiny/source/lib/Path?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Path-Tiny/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/dagolden/Path-Tiny">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Path-Tiny/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/dagolden/Path-Tiny">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/dagolden/Path-Tiny/issues">Issues</a>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Path-Tiny+0.144" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/P/Path-Tiny.html?oncpan=1&amp;distmat=1&amp;version=0.144&amp;grade=2" style="color: #090">3679</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/P/Path-Tiny.html?oncpan=1&amp;distmat=1&amp;version=0.144&amp;grade=3" style="color: #900">3</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/P/Path-Tiny.html?oncpan=1&amp;distmat=1&amp;version=0.144&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/DAGOLDEN/Path-Tiny-0.144">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Path-Tiny who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 2
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Path-Tiny-0.144/index.html">87.43% Coverage </a>
    </li>
    <li>
      License: apache_2_0
    </li>
    <li>
      Perl: v5.8.1
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Path-Tiny/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Path-Tiny-0.144.tar.gz">
      Download (<span itemprop="fileSize">103.25KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FDAGOLDEN%2FPath-Tiny-0.144%2Flib%2FPath%2FTiny.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Path-Tiny/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Path-Tiny/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Path-Tiny">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Path-Tiny">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Path/Tiny.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="DAGOLDEN/Path-Tiny-0.144"
>0.144
  (DAGOLDEN on 2022-12-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.143-TRIAL"
>0.143-TRIAL DEV
  (DAGOLDEN on 2022-11-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.142"
>0.142
  (DAGOLDEN on 2022-11-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.141-TRIAL"
>0.141-TRIAL DEV
  (DAGOLDEN on 2022-11-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.139-TRIAL"
>0.139-TRIAL DEV
  (DAGOLDEN on 2022-11-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.137-TRIAL"
>0.137-TRIAL DEV
  (DAGOLDEN on 2022-11-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.135-TRIAL"
>0.135-TRIAL DEV
  (DAGOLDEN on 2022-11-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.133-TRIAL"
>0.133-TRIAL DEV
  (DAGOLDEN on 2022-11-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.131-TRIAL"
>0.131-TRIAL DEV
  (DAGOLDEN on 2022-10-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.130"
>0.130
  (DAGOLDEN on 2022-10-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.128"
>0.128
  (DAGOLDEN on 2022-10-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.127-TRIAL"
>0.127-TRIAL DEV
  (DAGOLDEN on 2022-10-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.125-TRIAL"
>0.125-TRIAL DEV
  (DAGOLDEN on 2022-09-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.124"
>0.124
  (DAGOLDEN on 2022-09-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.123-TRIAL"
>0.123-TRIAL DEV
  (DAGOLDEN on 2022-08-29)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.122"
>0.122
  (DAGOLDEN on 2022-01-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.121-TRIAL"
>0.121-TRIAL DEV
  (DAGOLDEN on 2022-01-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.120"
>0.120
  (DAGOLDEN on 2021-10-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.119-TRIAL"
>0.119-TRIAL DEV
  (DAGOLDEN on 2021-10-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.118"
>0.118
  (DAGOLDEN on 2021-02-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.117-TRIAL"
>0.117-TRIAL DEV
  (DAGOLDEN on 2021-02-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.116"
>0.116
  (DAGOLDEN on 2021-01-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.115-TRIAL"
>0.115-TRIAL DEV
  (DAGOLDEN on 2021-01-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.114"
>0.114
  (DAGOLDEN on 2020-04-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.113-TRIAL"
>0.113-TRIAL DEV
  (DAGOLDEN on 2020-04-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.112"
>0.112
  (DAGOLDEN on 2020-01-29)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.111-TRIAL"
>0.111-TRIAL DEV
  (DAGOLDEN on 2020-01-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.110"
>0.110
  (DAGOLDEN on 2020-01-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.109-TRIAL"
>0.109-TRIAL DEV
  (DAGOLDEN on 2020-01-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.108"
>0.108
  (DAGOLDEN on 2018-07-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.107-TRIAL"
>0.107-TRIAL DEV
  (DAGOLDEN on 2018-07-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.106"
>0.106
  (DAGOLDEN on 2018-07-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.105-TRIAL"
>0.105-TRIAL DEV
  (DAGOLDEN on 2018-07-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.104"
>0.104
  (DAGOLDEN on 2017-02-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="DAGOLDEN/Path-Tiny-0.103-TRIAL"
>0.103-TRIAL DEV
  (DAGOLDEN on 2017-02-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.101-TRIAL"
>0.101-TRIAL DEV
  (DAGOLDEN on 2017-02-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.100"
>0.100
  (DAGOLDEN on 2017-01-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.099-TRIAL"
>0.099-TRIAL DEV
  (DAGOLDEN on 2017-01-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.098"
>0.098
  (DAGOLDEN on 2016-10-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.097-TRIAL"
>0.097-TRIAL DEV
  (DAGOLDEN on 2016-10-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.096"
>0.096
  (DAGOLDEN on 2016-07-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.095-TRIAL"
>0.095-TRIAL DEV
  (DAGOLDEN on 2016-06-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.094"
>0.094
  (DAGOLDEN on 2016-05-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.092"
>0.092
  (DAGOLDEN on 2016-05-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.091-TRIAL"
>0.091-TRIAL DEV
  (DAGOLDEN on 2016-05-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.090"
>0.090
  (DAGOLDEN on 2016-05-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.089-TRIAL"
>0.089-TRIAL DEV
  (DAGOLDEN on 2016-04-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.088"
>0.088
  (DAGOLDEN on 2016-04-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.087-TRIAL"
>0.087-TRIAL DEV
  (DAGOLDEN on 2016-04-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.086"
>0.086
  (DAGOLDEN on 2016-04-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.084"
>0.084
  (DAGOLDEN on 2016-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.082"
>0.082
  (DAGOLDEN on 2016-03-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.081-TRIAL"
>0.081-TRIAL DEV
  (DAGOLDEN on 2016-02-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.079-TRIAL"
>0.079-TRIAL DEV
  (DAGOLDEN on 2016-02-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.077-TRIAL"
>0.077-TRIAL DEV
  (DAGOLDEN on 2016-02-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.076"
>0.076
  (DAGOLDEN on 2015-11-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.075-TRIAL"
>0.075-TRIAL DEV
  (DAGOLDEN on 2015-11-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.073-TRIAL"
>0.073-TRIAL DEV
  (DAGOLDEN on 2015-10-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.072"
>0.072
  (DAGOLDEN on 2015-07-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.071-TRIAL"
>0.071-TRIAL DEV
  (DAGOLDEN on 2015-07-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.070"
>0.070
  (DAGOLDEN on 2015-06-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.069-TRIAL"
>0.069-TRIAL DEV
  (DAGOLDEN on 2015-06-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.068"
>0.068
  (DAGOLDEN on 2015-03-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.066-TRIAL"
>0.066-TRIAL DEV
  (DAGOLDEN on 2015-03-21)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.065"
>0.065
  (DAGOLDEN on 2015-03-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.064-TRIAL"
>0.064-TRIAL DEV
  (DAGOLDEN on 2015-03-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.063-TRIAL"
>0.063-TRIAL DEV
  (DAGOLDEN on 2015-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.062-TRIAL"
>0.062-TRIAL DEV
  (DAGOLDEN on 2015-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.061"
>0.061
  (DAGOLDEN on 2014-11-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.060"
>0.060
  (DAGOLDEN on 2014-11-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.059"
>0.059
  (DAGOLDEN on 2014-10-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.058"
>0.058
  (DAGOLDEN on 2014-09-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.057"
>0.057
  (DAGOLDEN on 2014-09-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.056"
>0.056
  (DAGOLDEN on 2014-08-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.055"
>0.055
  (DAGOLDEN on 2014-06-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.054"
>0.054
  (DAGOLDEN on 2014-05-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.053-TRIAL"
>0.053-TRIAL DEV
  (DAGOLDEN on 2014-03-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.052"
>0.052
  (DAGOLDEN on 2014-01-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.051"
>0.051
  (DAGOLDEN on 2013-12-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.050"
>0.050
  (DAGOLDEN on 2013-12-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.049"
>0.049
  (DAGOLDEN on 2013-12-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.048"
>0.048
  (DAGOLDEN on 2013-12-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.047"
>0.047
  (DAGOLDEN on 2013-11-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.046"
>0.046
  (DAGOLDEN on 2013-11-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.045"
>0.045
  (DAGOLDEN on 2013-11-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.044"
>0.044
  (DAGOLDEN on 2013-10-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.043"
>0.043
  (DAGOLDEN on 2013-10-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.042"
>0.042
  (DAGOLDEN on 2013-10-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.041"
>0.041
  (DAGOLDEN on 2013-10-11)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.040"
>0.040
  (DAGOLDEN on 2013-10-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.039"
>0.039
  (DAGOLDEN on 2013-10-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.038"
>0.038
  (DAGOLDEN on 2013-10-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.037"
>0.037
  (DAGOLDEN on 2013-09-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.036"
>0.036
  (DAGOLDEN on 2013-09-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.035"
>0.035
  (DAGOLDEN on 2013-09-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.034"
>0.034
  (DAGOLDEN on 2013-09-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.033"
>0.033
  (DAGOLDEN on 2013-09-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.032"
>0.032
  (DAGOLDEN on 2013-09-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.031"
>0.031
  (DAGOLDEN on 2013-08-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.030"
>0.030
  (DAGOLDEN on 2013-08-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.029"
>0.029
  (DAGOLDEN on 2013-08-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.028"
>0.028
  (DAGOLDEN on 2013-08-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.027"
>0.027
  (DAGOLDEN on 2013-07-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.026"
>0.026
  (DAGOLDEN on 2013-07-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.025"
>0.025
  (DAGOLDEN on 2013-07-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.024"
>0.024
  (DAGOLDEN on 2013-06-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.023"
>0.023
  (DAGOLDEN on 2013-06-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.022"
>0.022
  (DAGOLDEN on 2013-05-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.021"
>0.021
  (DAGOLDEN on 2013-05-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.020"
>0.020
  (DAGOLDEN on 2013-04-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.019"
>0.019
  (DAGOLDEN on 2013-04-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.018"
>0.018
  (DAGOLDEN on 2013-04-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.017"
>0.017
  (DAGOLDEN on 2013-03-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.016"
>0.016
  (DAGOLDEN on 2013-03-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.015"
>0.015
  (DAGOLDEN on 2013-03-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.014"
>0.014
  (DAGOLDEN on 2013-03-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.013"
>0.013
  (DAGOLDEN on 2013-02-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.012"
>0.012
  (DAGOLDEN on 2013-02-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.011"
>0.011
  (DAGOLDEN on 2013-02-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.010"
>0.010
  (DAGOLDEN on 2013-02-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.009"
>0.009
  (DAGOLDEN on 2013-02-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.008"
>0.008
  (DAGOLDEN on 2013-02-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.007"
>0.007
  (DAGOLDEN on 2013-02-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.006"
>0.006
  (DAGOLDEN on 2013-02-11)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.005"
>0.005
  (DAGOLDEN on 2013-02-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.004"
>0.004
  (DAGOLDEN on 2013-02-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.003"
>0.003
  (DAGOLDEN on 2013-01-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.002"
>0.002
  (DAGOLDEN on 2013-01-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.001"
>0.001
  (DAGOLDEN on 2013-01-31)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/DAGOLDEN/Path-Tiny-0.144/diff/' + encodeURIComponent(this.value) + '/lib/Path/Tiny.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="DAGOLDEN/Path-Tiny-0.144"
>0.144
  (DAGOLDEN on 2022-12-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.143-TRIAL"
>0.143-TRIAL DEV
  (DAGOLDEN on 2022-11-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.142"
>0.142
  (DAGOLDEN on 2022-11-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.141-TRIAL"
>0.141-TRIAL DEV
  (DAGOLDEN on 2022-11-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.139-TRIAL"
>0.139-TRIAL DEV
  (DAGOLDEN on 2022-11-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.137-TRIAL"
>0.137-TRIAL DEV
  (DAGOLDEN on 2022-11-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.135-TRIAL"
>0.135-TRIAL DEV
  (DAGOLDEN on 2022-11-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.133-TRIAL"
>0.133-TRIAL DEV
  (DAGOLDEN on 2022-11-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.131-TRIAL"
>0.131-TRIAL DEV
  (DAGOLDEN on 2022-10-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.130"
>0.130
  (DAGOLDEN on 2022-10-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.128"
>0.128
  (DAGOLDEN on 2022-10-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.127-TRIAL"
>0.127-TRIAL DEV
  (DAGOLDEN on 2022-10-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.125-TRIAL"
>0.125-TRIAL DEV
  (DAGOLDEN on 2022-09-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.124"
>0.124
  (DAGOLDEN on 2022-09-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.123-TRIAL"
>0.123-TRIAL DEV
  (DAGOLDEN on 2022-08-29)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.122"
>0.122
  (DAGOLDEN on 2022-01-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.121-TRIAL"
>0.121-TRIAL DEV
  (DAGOLDEN on 2022-01-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.120"
>0.120
  (DAGOLDEN on 2021-10-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.119-TRIAL"
>0.119-TRIAL DEV
  (DAGOLDEN on 2021-10-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.118"
>0.118
  (DAGOLDEN on 2021-02-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.117-TRIAL"
>0.117-TRIAL DEV
  (DAGOLDEN on 2021-02-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.116"
>0.116
  (DAGOLDEN on 2021-01-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.115-TRIAL"
>0.115-TRIAL DEV
  (DAGOLDEN on 2021-01-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.114"
>0.114
  (DAGOLDEN on 2020-04-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.113-TRIAL"
>0.113-TRIAL DEV
  (DAGOLDEN on 2020-04-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.112"
>0.112
  (DAGOLDEN on 2020-01-29)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.111-TRIAL"
>0.111-TRIAL DEV
  (DAGOLDEN on 2020-01-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.110"
>0.110
  (DAGOLDEN on 2020-01-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.109-TRIAL"
>0.109-TRIAL DEV
  (DAGOLDEN on 2020-01-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.108"
>0.108
  (DAGOLDEN on 2018-07-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.107-TRIAL"
>0.107-TRIAL DEV
  (DAGOLDEN on 2018-07-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.106"
>0.106
  (DAGOLDEN on 2018-07-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.105-TRIAL"
>0.105-TRIAL DEV
  (DAGOLDEN on 2018-07-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.104"
>0.104
  (DAGOLDEN on 2017-02-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="DAGOLDEN/Path-Tiny-0.103-TRIAL"
>0.103-TRIAL DEV
  (DAGOLDEN on 2017-02-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.101-TRIAL"
>0.101-TRIAL DEV
  (DAGOLDEN on 2017-02-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.100"
>0.100
  (DAGOLDEN on 2017-01-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.099-TRIAL"
>0.099-TRIAL DEV
  (DAGOLDEN on 2017-01-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.098"
>0.098
  (DAGOLDEN on 2016-10-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.097-TRIAL"
>0.097-TRIAL DEV
  (DAGOLDEN on 2016-10-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.096"
>0.096
  (DAGOLDEN on 2016-07-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.095-TRIAL"
>0.095-TRIAL DEV
  (DAGOLDEN on 2016-06-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.094"
>0.094
  (DAGOLDEN on 2016-05-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.092"
>0.092
  (DAGOLDEN on 2016-05-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.091-TRIAL"
>0.091-TRIAL DEV
  (DAGOLDEN on 2016-05-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.090"
>0.090
  (DAGOLDEN on 2016-05-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.089-TRIAL"
>0.089-TRIAL DEV
  (DAGOLDEN on 2016-04-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.088"
>0.088
  (DAGOLDEN on 2016-04-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.087-TRIAL"
>0.087-TRIAL DEV
  (DAGOLDEN on 2016-04-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.086"
>0.086
  (DAGOLDEN on 2016-04-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.084"
>0.084
  (DAGOLDEN on 2016-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.082"
>0.082
  (DAGOLDEN on 2016-03-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.081-TRIAL"
>0.081-TRIAL DEV
  (DAGOLDEN on 2016-02-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.079-TRIAL"
>0.079-TRIAL DEV
  (DAGOLDEN on 2016-02-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.077-TRIAL"
>0.077-TRIAL DEV
  (DAGOLDEN on 2016-02-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.076"
>0.076
  (DAGOLDEN on 2015-11-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.075-TRIAL"
>0.075-TRIAL DEV
  (DAGOLDEN on 2015-11-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.073-TRIAL"
>0.073-TRIAL DEV
  (DAGOLDEN on 2015-10-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.072"
>0.072
  (DAGOLDEN on 2015-07-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.071-TRIAL"
>0.071-TRIAL DEV
  (DAGOLDEN on 2015-07-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.070"
>0.070
  (DAGOLDEN on 2015-06-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.069-TRIAL"
>0.069-TRIAL DEV
  (DAGOLDEN on 2015-06-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.068"
>0.068
  (DAGOLDEN on 2015-03-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.066-TRIAL"
>0.066-TRIAL DEV
  (DAGOLDEN on 2015-03-21)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.065"
>0.065
  (DAGOLDEN on 2015-03-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.064-TRIAL"
>0.064-TRIAL DEV
  (DAGOLDEN on 2015-03-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.063-TRIAL"
>0.063-TRIAL DEV
  (DAGOLDEN on 2015-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.062-TRIAL"
>0.062-TRIAL DEV
  (DAGOLDEN on 2015-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.061"
>0.061
  (DAGOLDEN on 2014-11-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.060"
>0.060
  (DAGOLDEN on 2014-11-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.059"
>0.059
  (DAGOLDEN on 2014-10-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.058"
>0.058
  (DAGOLDEN on 2014-09-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.057"
>0.057
  (DAGOLDEN on 2014-09-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.056"
>0.056
  (DAGOLDEN on 2014-08-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.055"
>0.055
  (DAGOLDEN on 2014-06-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.054"
>0.054
  (DAGOLDEN on 2014-05-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.053-TRIAL"
>0.053-TRIAL DEV
  (DAGOLDEN on 2014-03-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.052"
>0.052
  (DAGOLDEN on 2014-01-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.051"
>0.051
  (DAGOLDEN on 2013-12-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.050"
>0.050
  (DAGOLDEN on 2013-12-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.049"
>0.049
  (DAGOLDEN on 2013-12-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.048"
>0.048
  (DAGOLDEN on 2013-12-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.047"
>0.047
  (DAGOLDEN on 2013-11-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.046"
>0.046
  (DAGOLDEN on 2013-11-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.045"
>0.045
  (DAGOLDEN on 2013-11-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.044"
>0.044
  (DAGOLDEN on 2013-10-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.043"
>0.043
  (DAGOLDEN on 2013-10-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.042"
>0.042
  (DAGOLDEN on 2013-10-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.041"
>0.041
  (DAGOLDEN on 2013-10-11)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.040"
>0.040
  (DAGOLDEN on 2013-10-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.039"
>0.039
  (DAGOLDEN on 2013-10-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.038"
>0.038
  (DAGOLDEN on 2013-10-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.037"
>0.037
  (DAGOLDEN on 2013-09-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.036"
>0.036
  (DAGOLDEN on 2013-09-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.035"
>0.035
  (DAGOLDEN on 2013-09-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.034"
>0.034
  (DAGOLDEN on 2013-09-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.033"
>0.033
  (DAGOLDEN on 2013-09-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.032"
>0.032
  (DAGOLDEN on 2013-09-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.031"
>0.031
  (DAGOLDEN on 2013-08-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.030"
>0.030
  (DAGOLDEN on 2013-08-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.029"
>0.029
  (DAGOLDEN on 2013-08-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.028"
>0.028
  (DAGOLDEN on 2013-08-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.027"
>0.027
  (DAGOLDEN on 2013-07-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.026"
>0.026
  (DAGOLDEN on 2013-07-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.025"
>0.025
  (DAGOLDEN on 2013-07-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.024"
>0.024
  (DAGOLDEN on 2013-06-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.023"
>0.023
  (DAGOLDEN on 2013-06-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.022"
>0.022
  (DAGOLDEN on 2013-05-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.021"
>0.021
  (DAGOLDEN on 2013-05-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.020"
>0.020
  (DAGOLDEN on 2013-04-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.019"
>0.019
  (DAGOLDEN on 2013-04-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.018"
>0.018
  (DAGOLDEN on 2013-04-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.017"
>0.017
  (DAGOLDEN on 2013-03-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.016"
>0.016
  (DAGOLDEN on 2013-03-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.015"
>0.015
  (DAGOLDEN on 2013-03-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.014"
>0.014
  (DAGOLDEN on 2013-03-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.013"
>0.013
  (DAGOLDEN on 2013-02-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.012"
>0.012
  (DAGOLDEN on 2013-02-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.011"
>0.011
  (DAGOLDEN on 2013-02-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.010"
>0.010
  (DAGOLDEN on 2013-02-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.009"
>0.009
  (DAGOLDEN on 2013-02-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.008"
>0.008
  (DAGOLDEN on 2013-02-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.007"
>0.007
  (DAGOLDEN on 2013-02-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.006"
>0.006
  (DAGOLDEN on 2013-02-11)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.005"
>0.005
  (DAGOLDEN on 2013-02-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.004"
>0.004
  (DAGOLDEN on 2013-02-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.003"
>0.003
  (DAGOLDEN on 2013-01-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.002"
>0.002
  (DAGOLDEN on 2013-01-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.001"
>0.001
  (DAGOLDEN on 2013-01-31)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/Cwd" title="Cwd" class="ellipsis">Cwd</a></li>
  <li><a href="https://metacpan.org/pod/Digest" title="Digest" class="ellipsis">Digest</a></li>
  <li><a href="https://metacpan.org/pod/Digest::SHA" title="Digest::SHA" class="ellipsis">Digest::SHA</a></li>
  <li><a href="https://metacpan.org/pod/Encode" title="Encode" class="ellipsis">Encode</a></li>
  <li><a href="https://metacpan.org/pod/Exporter" title="Exporter" class="ellipsis">Exporter</a></li>
  <li><a href="https://metacpan.org/pod/Fcntl" title="Fcntl" class="ellipsis">Fcntl</a></li>
  <li><a href="https://metacpan.org/pod/File::Compare" title="File::Compare" class="ellipsis">File::Compare</a></li>
  <li><a href="https://metacpan.org/pod/File::Copy" title="File::Copy" class="ellipsis">File::Copy</a></li>
  <li><a href="https://metacpan.org/pod/File::Glob" title="File::Glob" class="ellipsis">File::Glob</a></li>
  <li><a href="https://metacpan.org/pod/File::Path" title="File::Path" class="ellipsis">File::Path</a></li>
  <li><a href="https://metacpan.org/pod/File::Spec" title="File::Spec" class="ellipsis">File::Spec</a></li>
  <li><a href="https://metacpan.org/pod/File::Temp" title="File::Temp" class="ellipsis">File::Temp</a></li>
  <li><a href="https://metacpan.org/pod/File::stat" title="File::stat" class="ellipsis">File::stat</a></li>
  <li><a href="https://metacpan.org/pod/constant" title="constant" class="ellipsis">constant</a></li>
  <li><a href="https://metacpan.org/pod/overload" title="overload" class="ellipsis">overload</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/warnings" title="warnings" class="ellipsis">warnings</a></li>
  <li><a href="https://metacpan.org/pod/warnings::register" title="warnings::register" class="ellipsis">warnings::register</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Path::Tiny/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Path%3A%3ATiny">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Path-Tiny">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/DAGOLDEN/Path-Tiny-0.144/view/lib/Path/Tiny.pm">This version</a>
    </li>
    <li>
      <a href="./Path::Tiny.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/ILMARI"><img src="https://www.gravatar.com/avatar/a3059acdb28ce93c8b66a5f398b2cb39?d=identicon&amp;s=20" title="ILMARI" alt="ILMARI"></a>
<a class="display-all" href="https://metacpan.org/author/MELO"><img src="https://www.gravatar.com/avatar/4809188f41ad2613f4c240b72d97604c?d=identicon&amp;s=20" title="MELO" alt="MELO"></a>
<a class="display-all" href="https://metacpan.org/author/JHTHORSEN"><img src="https://www.gravatar.com/avatar/806800a3aeddbad6af673dade958933b?d=identicon&amp;s=20" title="JHTHORSEN" alt="JHTHORSEN"></a>
<a class="display-all" href="https://metacpan.org/author/MARKELLIS"><img src="https://www.gravatar.com/avatar/92315223d3db6647ba260d8803c75e49?d=identicon&amp;s=20" title="MARKELLIS" alt="MARKELLIS"></a>
<a class="display-all" href="https://metacpan.org/author/GUILLEM"><img src="https://www.gravatar.com/avatar/dd3f97b14cafb2654c8e0edfc36b95f5?d=identicon&amp;s=20" title="GUILLEM" alt="GUILLEM"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Path-Tiny/plussers">83 PAUSE users</a>
</div>
<div>
    101 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 37 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="powerman@powerman.name"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Alex Efros
    </li>
    <li class="contributor"
      data-cpan-author="ARISTOTLE"
      data-contrib-email="pagaltzis@gmx.de"
    >
      <a href="https://metacpan.org/author/ARISTOTLE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/81da52fa1b6754867e9056c58afab74d?d=identicon&amp;s=20" />
      Aristotle Pagaltzis
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="BINGOS"
      data-contrib-email="bingos@cpan.org"
    >
      <a href="https://metacpan.org/author/BINGOS" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/cb1574e2e83978e99c46190960a2da77?d=identicon&amp;s=20" />
      Chris Williams
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="grinnz@grinnz.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Dan Book
    </li>
    <li class="contributor"
      data-cpan-author="DROLSKY"
      data-contrib-email="autarch@urth.org"
    >
      <a href="https://metacpan.org/author/DROLSKY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/1401e7f176d9e13ad2a9380ecd1f18f6?d=identicon&amp;s=20" />
      Dave Rolsky
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="dsteinbrunner@pobox.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      David Steinbrunner
    </li>
    <li class="contributor"
      data-contrib-email="madcityzen@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Doug Bell
    </li>
    <li class="contributor"
      data-cpan-author="RWP"
      data-contrib-email="rwp.primary@gmail.com"
    >
      <a href="https://metacpan.org/author/RWP" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/7110eb2389e69a066d9d7cad7a1cc2bf?d=identicon&amp;s=20" />
      Elvin Aslanov
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="flavio@polettix.it"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Flavio Poletti
    </li>
    <li class="contributor"
      data-cpan-author="SZABGAB"
      data-contrib-email="szabgab@cpan.org"
    >
      <a href="https://metacpan.org/author/SZABGAB" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/4e0a6fe2acda5df6095514e7d6329e91?d=identicon&amp;s=20" />
      Gabor Szabo
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="gabiruh@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gabriel Andrade
    </li>
    <li class="contributor"
      data-cpan-author="HARTZELL"
      data-contrib-email="hartzell@cpan.org"
    >
      <a href="https://metacpan.org/author/HARTZELL" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/dce6bda3d9fc1483029bd5e363933c75?d=identicon&amp;s=20" />
      George Hartzell
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="geraud@scsi.nc"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Geraud Continsouzas
    </li>
    <li class="contributor"
      data-cpan-author="GFUJI"
      data-contrib-email="gfuji@cpan.org"
    >
      <a href="https://metacpan.org/author/GFUJI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/9278c3a06b8d8752fb913dea93f959c1?d=identicon&amp;s=20" />
      Goro Fuji
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="HAARG"
      data-contrib-email="haarg@haarg.org"
    >
      <a href="https://metacpan.org/author/HAARG" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5037faf9ba40cf736778820fe83fc2ae?d=identicon&amp;s=20" />
      Graham Knop
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="PLICEASE"
      data-contrib-email="plicease@cpan.org"
    >
      <a href="https://metacpan.org/author/PLICEASE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/0640fb1c0a5e82f5a777f2306efcac77?d=identicon&amp;s=20" />
      Graham Ollis
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="ian@sillit.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Ian Sillitoe
    </li>
    <li class="contributor"
      data-contrib-email="james@niftylogic.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      James Hunt
    </li>
    <li class="contributor"
      data-contrib-email="brainbuz@brainbuz.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      John Karr
    </li>
    <li class="contributor"
      data-cpan-author="ETHER"
      data-contrib-email="ether@cpan.org"
    >
      <a href="https://metacpan.org/author/ETHER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bdc5cd06679e732e262f6c1b450a0237?d=identicon&amp;s=20" />
      Karen Etheridge
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="mark.ellis@cartridgesave.co.uk"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Mark Ellis
    </li>
    <li class="contributor"
      data-cpan-author="FANY"
      data-contrib-email="fany@cpan.org"
    >
      <a href="https://metacpan.org/author/FANY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/7bc0edaceda1cb0a5b56b844a5b406c2?d=identicon&amp;s=20" />
      Martin H. Sluka
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="mk@bluepipe.dk"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Martin Kjeldsen
    </li>
    <li class="contributor"
      data-contrib-email="regina.verb.ae@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Mary Ehlers
    </li>
    <li class="contributor"
      data-cpan-author="MSCHWERN"
      data-contrib-email="mschwern@cpan.org"
    >
      <a href="https://metacpan.org/author/MSCHWERN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/db1a33946e2a8577b8d3377d0715bf61?d=identicon&amp;s=20" />
      Michael G. Schwern
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="nicolas@atoomic.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Nicolas R
    </li>
    <li class="contributor"
      data-contrib-email="rochelemagne@cpanel.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Nicolas Rochelemagne
    </li>
    <li class="contributor"
      data-contrib-email="nigelgregoire@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Nigel Gregoire
    </li>
    <li class="contributor"
      data-cpan-author="BOOK"
      data-contrib-email="book@cpan.org"
    >
      <a href="https://metacpan.org/author/BOOK" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/caceed5798ea9b855532b257de4686e8?d=identicon&amp;s=20" />
      Philippe Bruhat (BooK)
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="regina-verbae@users.noreply.github.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      regina-verbae
    </li>
    <li class="contributor"
      data-cpan-author="RIVY"
      data-contrib-email="rivy@cpan.org"
    >
      <a href="https://metacpan.org/author/RIVY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/4da2f44631ff77258d5b254177a9893b?d=identicon&amp;s=20" />
      Roy Ivy III
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SHLOMIF"
      data-contrib-email="shlomif@shlomifish.org"
    >
      <a href="https://metacpan.org/author/SHLOMIF" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/072331b92b0e6e9d9bc31c3af8f8ccea?d=identicon&amp;s=20" />
      Shlomi Fish
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="Smylers@stripey.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Smylers
    </li>
    <li class="contributor"
      data-cpan-author="MIYAGAWA"
      data-contrib-email="miyagawa@bulknews.net"
    >
      <a href="https://metacpan.org/author/MIYAGAWA" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/2edd59ce5f91bec4b962bfce0a805211?d=identicon&amp;s=20" />
      Tatsuhiko Miyagawa
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="TOBYINK"
      data-contrib-email="tobyink@cpan.org"
    >
      <a href="https://metacpan.org/author/TOBYINK" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/f8faf2a422aecd1007b7d54c19ce7f39?d=identicon&amp;s=20" />
      Toby Inkster
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="yanick@babyl.dyndns.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Yanick Champoux
    </li>
    <li class="contributor"
      data-cpan-author="KEEDI"
      data-contrib-email="keedi@cpan.org"
    >
      <a href="https://metacpan.org/author/KEEDI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/95f905a7a4ccc573c711e9d264c0fde8?d=identicon&amp;s=20" />
      김도형 - Keedi Kim
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/DAGOLDEN" class="author-name">David Golden</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Path/Tiny.pm&#39;" class="">
<option
  selected
  value="DAGOLDEN/Path-Tiny-0.144"
>0.144
  (DAGOLDEN on 2022-12-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.143-TRIAL"
>0.143-TRIAL DEV
  (DAGOLDEN on 2022-11-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.142"
>0.142
  (DAGOLDEN on 2022-11-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.141-TRIAL"
>0.141-TRIAL DEV
  (DAGOLDEN on 2022-11-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.139-TRIAL"
>0.139-TRIAL DEV
  (DAGOLDEN on 2022-11-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.137-TRIAL"
>0.137-TRIAL DEV
  (DAGOLDEN on 2022-11-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.135-TRIAL"
>0.135-TRIAL DEV
  (DAGOLDEN on 2022-11-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.133-TRIAL"
>0.133-TRIAL DEV
  (DAGOLDEN on 2022-11-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.131-TRIAL"
>0.131-TRIAL DEV
  (DAGOLDEN on 2022-10-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.130"
>0.130
  (DAGOLDEN on 2022-10-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.128"
>0.128
  (DAGOLDEN on 2022-10-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.127-TRIAL"
>0.127-TRIAL DEV
  (DAGOLDEN on 2022-10-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.125-TRIAL"
>0.125-TRIAL DEV
  (DAGOLDEN on 2022-09-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.124"
>0.124
  (DAGOLDEN on 2022-09-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.123-TRIAL"
>0.123-TRIAL DEV
  (DAGOLDEN on 2022-08-29)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.122"
>0.122
  (DAGOLDEN on 2022-01-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.121-TRIAL"
>0.121-TRIAL DEV
  (DAGOLDEN on 2022-01-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.120"
>0.120
  (DAGOLDEN on 2021-10-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.119-TRIAL"
>0.119-TRIAL DEV
  (DAGOLDEN on 2021-10-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.118"
>0.118
  (DAGOLDEN on 2021-02-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.117-TRIAL"
>0.117-TRIAL DEV
  (DAGOLDEN on 2021-02-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.116"
>0.116
  (DAGOLDEN on 2021-01-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.115-TRIAL"
>0.115-TRIAL DEV
  (DAGOLDEN on 2021-01-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.114"
>0.114
  (DAGOLDEN on 2020-04-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.113-TRIAL"
>0.113-TRIAL DEV
  (DAGOLDEN on 2020-04-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.112"
>0.112
  (DAGOLDEN on 2020-01-29)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.111-TRIAL"
>0.111-TRIAL DEV
  (DAGOLDEN on 2020-01-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.110"
>0.110
  (DAGOLDEN on 2020-01-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.109-TRIAL"
>0.109-TRIAL DEV
  (DAGOLDEN on 2020-01-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.108"
>0.108
  (DAGOLDEN on 2018-07-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.107-TRIAL"
>0.107-TRIAL DEV
  (DAGOLDEN on 2018-07-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.106"
>0.106
  (DAGOLDEN on 2018-07-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.105-TRIAL"
>0.105-TRIAL DEV
  (DAGOLDEN on 2018-07-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.104"
>0.104
  (DAGOLDEN on 2017-02-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="DAGOLDEN/Path-Tiny-0.103-TRIAL"
>0.103-TRIAL DEV
  (DAGOLDEN on 2017-02-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.101-TRIAL"
>0.101-TRIAL DEV
  (DAGOLDEN on 2017-02-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.100"
>0.100
  (DAGOLDEN on 2017-01-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.099-TRIAL"
>0.099-TRIAL DEV
  (DAGOLDEN on 2017-01-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.098"
>0.098
  (DAGOLDEN on 2016-10-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.097-TRIAL"
>0.097-TRIAL DEV
  (DAGOLDEN on 2016-10-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.096"
>0.096
  (DAGOLDEN on 2016-07-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.095-TRIAL"
>0.095-TRIAL DEV
  (DAGOLDEN on 2016-06-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.094"
>0.094
  (DAGOLDEN on 2016-05-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.092"
>0.092
  (DAGOLDEN on 2016-05-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.091-TRIAL"
>0.091-TRIAL DEV
  (DAGOLDEN on 2016-05-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.090"
>0.090
  (DAGOLDEN on 2016-05-02)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.089-TRIAL"
>0.089-TRIAL DEV
  (DAGOLDEN on 2016-04-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.088"
>0.088
  (DAGOLDEN on 2016-04-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.087-TRIAL"
>0.087-TRIAL DEV
  (DAGOLDEN on 2016-04-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.086"
>0.086
  (DAGOLDEN on 2016-04-03)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.084"
>0.084
  (DAGOLDEN on 2016-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.082"
>0.082
  (DAGOLDEN on 2016-03-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.081-TRIAL"
>0.081-TRIAL DEV
  (DAGOLDEN on 2016-02-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.079-TRIAL"
>0.079-TRIAL DEV
  (DAGOLDEN on 2016-02-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.077-TRIAL"
>0.077-TRIAL DEV
  (DAGOLDEN on 2016-02-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.076"
>0.076
  (DAGOLDEN on 2015-11-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.075-TRIAL"
>0.075-TRIAL DEV
  (DAGOLDEN on 2015-11-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.073-TRIAL"
>0.073-TRIAL DEV
  (DAGOLDEN on 2015-10-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.072"
>0.072
  (DAGOLDEN on 2015-07-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.071-TRIAL"
>0.071-TRIAL DEV
  (DAGOLDEN on 2015-07-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.070"
>0.070
  (DAGOLDEN on 2015-06-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.069-TRIAL"
>0.069-TRIAL DEV
  (DAGOLDEN on 2015-06-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.068"
>0.068
  (DAGOLDEN on 2015-03-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.066-TRIAL"
>0.066-TRIAL DEV
  (DAGOLDEN on 2015-03-21)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.065"
>0.065
  (DAGOLDEN on 2015-03-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.064-TRIAL"
>0.064-TRIAL DEV
  (DAGOLDEN on 2015-03-05)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.063-TRIAL"
>0.063-TRIAL DEV
  (DAGOLDEN on 2015-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.062-TRIAL"
>0.062-TRIAL DEV
  (DAGOLDEN on 2015-03-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.061"
>0.061
  (DAGOLDEN on 2014-11-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.060"
>0.060
  (DAGOLDEN on 2014-11-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.059"
>0.059
  (DAGOLDEN on 2014-10-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.058"
>0.058
  (DAGOLDEN on 2014-09-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.057"
>0.057
  (DAGOLDEN on 2014-09-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.056"
>0.056
  (DAGOLDEN on 2014-08-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.055"
>0.055
  (DAGOLDEN on 2014-06-30)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.054"
>0.054
  (DAGOLDEN on 2014-05-04)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.053-TRIAL"
>0.053-TRIAL DEV
  (DAGOLDEN on 2014-03-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.052"
>0.052
  (DAGOLDEN on 2014-01-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.051"
>0.051
  (DAGOLDEN on 2013-12-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.050"
>0.050
  (DAGOLDEN on 2013-12-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.049"
>0.049
  (DAGOLDEN on 2013-12-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.048"
>0.048
  (DAGOLDEN on 2013-12-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.047"
>0.047
  (DAGOLDEN on 2013-11-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.046"
>0.046
  (DAGOLDEN on 2013-11-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.045"
>0.045
  (DAGOLDEN on 2013-11-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.044"
>0.044
  (DAGOLDEN on 2013-10-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.043"
>0.043
  (DAGOLDEN on 2013-10-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.042"
>0.042
  (DAGOLDEN on 2013-10-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.041"
>0.041
  (DAGOLDEN on 2013-10-11)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.040"
>0.040
  (DAGOLDEN on 2013-10-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.039"
>0.039
  (DAGOLDEN on 2013-10-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.038"
>0.038
  (DAGOLDEN on 2013-10-01)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.037"
>0.037
  (DAGOLDEN on 2013-09-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.036"
>0.036
  (DAGOLDEN on 2013-09-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.035"
>0.035
  (DAGOLDEN on 2013-09-24)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.034"
>0.034
  (DAGOLDEN on 2013-09-23)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.033"
>0.033
  (DAGOLDEN on 2013-09-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.032"
>0.032
  (DAGOLDEN on 2013-09-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.031"
>0.031
  (DAGOLDEN on 2013-08-27)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.030"
>0.030
  (DAGOLDEN on 2013-08-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.029"
>0.029
  (DAGOLDEN on 2013-08-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.028"
>0.028
  (DAGOLDEN on 2013-08-14)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.027"
>0.027
  (DAGOLDEN on 2013-07-25)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.026"
>0.026
  (DAGOLDEN on 2013-07-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.025"
>0.025
  (DAGOLDEN on 2013-07-10)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.024"
>0.024
  (DAGOLDEN on 2013-06-17)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.023"
>0.023
  (DAGOLDEN on 2013-06-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.022"
>0.022
  (DAGOLDEN on 2013-05-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.021"
>0.021
  (DAGOLDEN on 2013-05-18)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.020"
>0.020
  (DAGOLDEN on 2013-04-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.019"
>0.019
  (DAGOLDEN on 2013-04-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.018"
>0.018
  (DAGOLDEN on 2013-04-08)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.017"
>0.017
  (DAGOLDEN on 2013-03-28)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.016"
>0.016
  (DAGOLDEN on 2013-03-26)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.015"
>0.015
  (DAGOLDEN on 2013-03-13)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.014"
>0.014
  (DAGOLDEN on 2013-03-09)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.013"
>0.013
  (DAGOLDEN on 2013-02-22)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.012"
>0.012
  (DAGOLDEN on 2013-02-20)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.011"
>0.011
  (DAGOLDEN on 2013-02-19)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.010"
>0.010
  (DAGOLDEN on 2013-02-16)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.009"
>0.009
  (DAGOLDEN on 2013-02-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.008"
>0.008
  (DAGOLDEN on 2013-02-15)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.007"
>0.007
  (DAGOLDEN on 2013-02-12)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.006"
>0.006
  (DAGOLDEN on 2013-02-11)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.005"
>0.005
  (DAGOLDEN on 2013-02-07)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.004"
>0.004
  (DAGOLDEN on 2013-02-06)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.003"
>0.003
  (DAGOLDEN on 2013-01-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.002"
>0.002
  (DAGOLDEN on 2013-01-31)</option>
<option
  
  value="DAGOLDEN/Path-Tiny-0.001"
>0.001
  (DAGOLDEN on 2013-01-31)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Path-Tiny">Path-Tiny-0.144</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage four &#10;
          • 891 direct dependents &#10;          • 7170 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Path-Tiny-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Path-Tiny-0.144">
    <input type="hidden" name="author" value="DAGOLDEN">
    <input type="hidden" name="distribution" value="Path-Tiny">
    <button type="submit" class="favorite highlight"><span>184</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Path::Tiny.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>184</span> ++</a>
</div>
   / <span>Path::Tiny</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Path::Tiny.html#NAME">NAME</a></li>
  <li><a href="./Path::Tiny.html#VERSION">VERSION</a></li>
  <li><a href="./Path::Tiny.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Path::Tiny.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Path::Tiny.html#CONSTRUCTORS">CONSTRUCTORS</a>
    <ul>
      <li><a href="./Path::Tiny.html#path">path</a></li>
      <li><a href="./Path::Tiny.html#new">new</a></li>
      <li><a href="./Path::Tiny.html#cwd">cwd</a></li>
      <li><a href="./Path::Tiny.html#rootdir">rootdir</a></li>
      <li><a href="./Path::Tiny.html#tempfile,-tempdir">tempfile, tempdir</a></li>
    </ul>
  </li>
  <li><a href="./Path::Tiny.html#METHODS">METHODS</a>
    <ul>
      <li><a href="./Path::Tiny.html#absolute">absolute</a></li>
      <li><a href="./Path::Tiny.html#append,-append_raw,-append_utf8">append, append_raw, append_utf8</a></li>
      <li><a href="./Path::Tiny.html#assert">assert</a></li>
      <li><a href="./Path::Tiny.html#basename">basename</a></li>
      <li><a href="./Path::Tiny.html#canonpath">canonpath</a></li>
      <li><a href="./Path::Tiny.html#cached_temp">cached_temp</a></li>
      <li><a href="./Path::Tiny.html#child">child</a></li>
      <li><a href="./Path::Tiny.html#children">children</a></li>
      <li><a href="./Path::Tiny.html#chmod">chmod</a></li>
      <li><a href="./Path::Tiny.html#copy">copy</a></li>
      <li><a href="./Path::Tiny.html#digest">digest</a></li>
      <li><a href="./Path::Tiny.html#dirname-(deprecated)">dirname (deprecated)</a></li>
      <li><a href="./Path::Tiny.html#edit,-edit_raw,-edit_utf8">edit, edit_raw, edit_utf8</a></li>
      <li><a href="./Path::Tiny.html#edit_lines,-edit_lines_utf8,-edit_lines_raw">edit_lines, edit_lines_utf8, edit_lines_raw</a></li>
      <li><a href="./Path::Tiny.html#exists,-is_file,-is_dir">exists, is_file, is_dir</a></li>
      <li><a href="./Path::Tiny.html#filehandle">filehandle</a></li>
      <li><a href="./Path::Tiny.html#has_same_bytes">has_same_bytes</a></li>
      <li><a href="./Path::Tiny.html#is_absolute,-is_relative">is_absolute, is_relative</a></li>
      <li><a href="./Path::Tiny.html#is_rootdir">is_rootdir</a></li>
      <li><a href="./Path::Tiny.html#iterator">iterator</a></li>
      <li><a href="./Path::Tiny.html#lines,-lines_raw,-lines_utf8">lines, lines_raw, lines_utf8</a></li>
      <li><a href="./Path::Tiny.html#mkdir">mkdir</a></li>
      <li><a href="./Path::Tiny.html#mkpath-(deprecated)">mkpath (deprecated)</a></li>
      <li><a href="./Path::Tiny.html#move">move</a></li>
      <li><a href="./Path::Tiny.html#openr,-openw,-openrw,-opena">openr, openw, openrw, opena</a></li>
      <li><a href="./Path::Tiny.html#parent">parent</a></li>
      <li><a href="./Path::Tiny.html#realpath">realpath</a></li>
      <li><a href="./Path::Tiny.html#relative">relative</a></li>
      <li><a href="./Path::Tiny.html#remove">remove</a></li>
      <li><a href="./Path::Tiny.html#remove_tree">remove_tree</a></li>
      <li><a href="./Path::Tiny.html#sibling">sibling</a></li>
      <li><a href="./Path::Tiny.html#size,-size_human">size, size_human</a></li>
      <li><a href="./Path::Tiny.html#slurp,-slurp_raw,-slurp_utf8">slurp, slurp_raw, slurp_utf8</a></li>
      <li><a href="./Path::Tiny.html#spew,-spew_raw,-spew_utf8">spew, spew_raw, spew_utf8</a></li>
      <li><a href="./Path::Tiny.html#stat,-lstat">stat, lstat</a></li>
      <li><a href="./Path::Tiny.html#stringify">stringify</a></li>
      <li><a href="./Path::Tiny.html#subsumes">subsumes</a></li>
      <li><a href="./Path::Tiny.html#touch">touch</a></li>
      <li><a href="./Path::Tiny.html#touchpath">touchpath</a></li>
      <li><a href="./Path::Tiny.html#visit">visit</a></li>
      <li><a href="./Path::Tiny.html#volume">volume</a></li>
    </ul>
  </li>
  <li><a href="./Path::Tiny.html#EXCEPTION-HANDLING">EXCEPTION HANDLING</a></li>
  <li><a href="./Path::Tiny.html#ENVIRONMENT">ENVIRONMENT</a>
    <ul>
      <li><a href="./Path::Tiny.html#PERL_PATH_TINY_NO_FLOCK">PERL_PATH_TINY_NO_FLOCK</a></li>
    </ul>
  </li>
  <li><a href="./Path::Tiny.html#CAVEATS">CAVEATS</a>
    <ul>
      <li><a href="./Path::Tiny.html#Subclassing-not-supported">Subclassing not supported</a></li>
      <li><a href="./Path::Tiny.html#Tilde-expansion-(deprecated)">Tilde expansion (deprecated)</a></li>
      <li><a href="./Path::Tiny.html#File-locking">File locking</a>
        <ul>
          <li><a href="./Path::Tiny.html#NFS-and-BSD">NFS and BSD</a></li>
          <li><a href="./Path::Tiny.html#Lustre">Lustre</a></li>
          <li><a href="./Path::Tiny.html#AIX-and-locking">AIX and locking</a></li>
        </ul>
      </li>
      <li><a href="./Path::Tiny.html#utf8-vs-UTF-8">utf8 vs UTF-8</a></li>
      <li><a href="./Path::Tiny.html#Default-IO-layers-and-the-open-pragma">Default IO layers and the open pragma</a></li>
    </ul>
  </li>
  <li><a href="./Path::Tiny.html#TYPE-CONSTRAINTS-AND-COERCION">TYPE CONSTRAINTS AND COERCION</a></li>
  <li><a href="./Path::Tiny.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./Path::Tiny.html#SUPPORT">SUPPORT</a>
    <ul>
      <li><a href="./Path::Tiny.html#Bugs-/-Feature-Requests">Bugs / Feature Requests</a></li>
      <li><a href="./Path::Tiny.html#Source-Code">Source Code</a></li>
    </ul>
  </li>
  <li><a href="./Path::Tiny.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Path::Tiny.html#CONTRIBUTORS">CONTRIBUTORS</a></li>
  <li><a href="./Path::Tiny.html#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Path::Tiny - File path utility</p>

<h1 id="VERSION">VERSION</h1>

<p>version 0.144</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>  use Path::Tiny;

  # Creating Path::Tiny objects

  my $dir = path(&quot;/tmp&quot;);
  my $foo = path(&quot;foo.txt&quot;);

  my $subdir = $dir-&gt;child(&quot;foo&quot;);
  my $bar = $subdir-&gt;child(&quot;bar.txt&quot;);

  # Stringifies as cleaned up path

  my $file = path(&quot;./foo.txt&quot;);
  print $file; # &quot;foo.txt&quot;

  # Reading files

  my $guts = $file-&gt;slurp;
     $guts = $file-&gt;slurp_utf8;

  my @lines = $file-&gt;lines;
     @lines = $file-&gt;lines_utf8;

  my ($head) = $file-&gt;lines( {count =&gt; 1} );
  my ($tail) = $file-&gt;lines( {count =&gt; -1} );

  # Writing files

  $bar-&gt;spew( @data );
  $bar-&gt;spew_utf8( @data );

  # Reading directories

  for ( $dir-&gt;children ) { ... }

  my $iter = $dir-&gt;iterator;
  while ( my $next = $iter-&gt;() ) { ... }</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>This module provides a small, fast utility for working with file paths. It is friendlier to use than <a href="https://metacpan.org/pod/File::Spec">File::Spec</a> and provides easy access to functions from several other core file handling modules. It aims to be smaller and faster than many alternatives on CPAN, while helping people do many common things in consistent and less error-prone ways.</p>

<p>Path::Tiny does not try to work for anything except Unix-like and Win32 platforms. Even then, it might break if you try something particularly obscure or tortuous. (Quick! What does this mean: <code>///../../..//./././a//b/.././c/././</code>? And how does it differ on Win32?)</p>

<p>All paths are forced to have Unix-style forward slashes. Stringifying the object gives you back the path (after some clean up).</p>

<p>File input/output methods <code>flock</code> handles before reading or writing, as appropriate (if supported by the platform and/or filesystem).</p>

<p>The <code>*_utf8</code> methods (<code>slurp_utf8</code>, <code>lines_utf8</code>, etc.) operate in raw mode. On Windows, that means they will not have CRLF translation from the <code>:crlf</code> IO layer. Installing <a href="https://metacpan.org/pod/Unicode::UTF8">Unicode::UTF8</a> 0.58 or later will speed up <code>*_utf8</code> situations in many cases and is highly recommended. Alternatively, installing <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a> 0.003 or later will be used in place of the default <code>:encoding(UTF-8)</code>.</p>

<p>This module depends heavily on PerlIO layers for correct operation and thus requires Perl 5.008001 or later.</p>

<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>

<h2 id="path">path</h2>

<pre><code>    $path = path(&quot;foo/bar&quot;);
    $path = path(&quot;/tmp&quot;, &quot;file.txt&quot;); # list
    $path = path(&quot;.&quot;);                # cwd</code></pre>

<p>Constructs a <code>Path::Tiny</code> object. It doesn&#39;t matter if you give a file or directory path. It&#39;s still up to you to call directory-like methods only on directories and file-like methods only on files. This function is exported automatically by default.</p>

<p>The first argument must be defined and have non-zero length or an exception will be thrown. This prevents subtle, dangerous errors with code like <code>path( maybe_undef() )-&gt;remove_tree</code>.</p>

<p><b>DEPRECATED</b>: If and only if the <b>first</b> character of the <b>first</b> argument to <code>path</code> is a tilde (&#39;~&#39;), then tilde replacement will be applied to the first path segment. A single tilde will be replaced with <code>glob(&#39;~&#39;)</code> and a tilde followed by a username will be replaced with output of <code>glob(&#39;~username&#39;)</code>. <b>No other method does tilde expansion on its arguments</b>. See <a href="./Path::Tiny.html#Tilde-expansion-(deprecated)">&quot;Tilde expansion (deprecated)&quot;</a> for more.</p>

<p>On Windows, if the path consists of a drive identifier without a path component (<code>C:</code> or <code>D:</code>), it will be expanded to the absolute path of the current directory on that volume using <code>Cwd::getdcwd()</code>.</p>

<p>If called with a single <code>Path::Tiny</code> argument, the original is returned unless the original is holding a temporary file or directory reference in which case a stringified copy is made.</p>

<pre><code>    $path = path(&quot;foo/bar&quot;);
    $temp = Path::Tiny-&gt;tempfile;

    $p2 = path($path); # like $p2 = $path
    $t2 = path($temp); # like $t2 = path( &quot;$temp&quot; )</code></pre>

<p>This optimizes copies without proliferating references unexpectedly if a copy is made by code outside your control.</p>

<p>Current API available since 0.017.</p>

<h2 id="new">new</h2>

<pre><code>    $path = Path::Tiny-&gt;new(&quot;foo/bar&quot;);</code></pre>

<p>This is just like <code>path</code>, but with method call overhead. (Why would you do that?)</p>

<p>Current API available since 0.001.</p>

<h2 id="cwd">cwd</h2>

<pre><code>    $path = Path::Tiny-&gt;cwd; # path( Cwd::getcwd )
    $path = cwd; # optional export</code></pre>

<p>Gives you the absolute path to the current directory as a <code>Path::Tiny</code> object. This is slightly faster than <code>path(&quot;.&quot;)-&gt;absolute</code>.</p>

<p><code>cwd</code> may be exported on request and used as a function instead of as a method.</p>

<p>Current API available since 0.018.</p>

<h2 id="rootdir">rootdir</h2>

<pre><code>    $path = Path::Tiny-&gt;rootdir; # /
    $path = rootdir;             # optional export </code></pre>

<p>Gives you <code>File::Spec-&gt;rootdir</code> as a <code>Path::Tiny</code> object if you&#39;re too picky for <code>path(&quot;/&quot;)</code>.</p>

<p><code>rootdir</code> may be exported on request and used as a function instead of as a method.</p>

<p>Current API available since 0.018.</p>

<h2 id="tempfile,-tempdir"><a id="tempfile"></a><a id="tempfile--tempdir"></a>tempfile, tempdir</h2>

<pre><code>    $temp = Path::Tiny-&gt;tempfile( @options );
    $temp = Path::Tiny-&gt;tempdir( @options );
    $temp = $dirpath-&gt;tempfile( @options );
    $temp = $dirpath-&gt;tempdir( @options );
    $temp = tempfile( @options ); # optional export
    $temp = tempdir( @options );  # optional export</code></pre>

<p><code>tempfile</code> passes the options to <code>File::Temp-&gt;new</code> and returns a <code>Path::Tiny</code> object with the file name. The <code>TMPDIR</code> option will be enabled by default, but you can override that by passing <code>TMPDIR =&gt; 0</code> along with the options. (If you use an absolute <code>TEMPLATE</code> option, you will want to disable <code>TMPDIR</code>.)</p>

<p>The resulting <code>File::Temp</code> object is cached. When the <code>Path::Tiny</code> object is destroyed, the <code>File::Temp</code> object will be as well.</p>

<p><code>File::Temp</code> annoyingly requires you to specify a custom template in slightly different ways depending on which function or method you call, but <code>Path::Tiny</code> lets you ignore that and can take either a leading template or a <code>TEMPLATE</code> option and does the right thing.</p>

<pre><code>    $temp = Path::Tiny-&gt;tempfile( &quot;customXXXXXXXX&quot; );             # ok
    $temp = Path::Tiny-&gt;tempfile( TEMPLATE =&gt; &quot;customXXXXXXXX&quot; ); # ok</code></pre>

<p>The tempfile path object will be normalized to have an absolute path, even if created in a relative directory using <code>DIR</code>. If you want it to have the <code>realpath</code> instead, pass a leading options hash like this:</p>

<pre><code>    $real_temp = tempfile({realpath =&gt; 1}, @options);</code></pre>

<p><code>tempdir</code> is just like <code>tempfile</code>, except it calls <code>File::Temp-&gt;newdir</code> instead.</p>

<p>Both <code>tempfile</code> and <code>tempdir</code> may be exported on request and used as functions instead of as methods.</p>

<p>The methods can be called on an instances representing a directory. In this case, the directory is used as the base to create the temporary file/directory, setting the <code>DIR</code> option in File::Temp.</p>

<pre><code>    my $target_dir = path(&#39;/to/destination&#39;);
    my $tempfile = $target_dir-&gt;tempfile(&#39;foobarXXXXXX&#39;);
    $tempfile-&gt;spew(&#39;A lot of data...&#39;);  # not atomic
    $tempfile-&gt;move($target_dir-&gt;child(&#39;foobar&#39;)); # hopefully atomic</code></pre>

<p>In this case, any value set for option <code>DIR</code> is ignored.</p>

<p><b>Note</b>: for tempfiles, the filehandles from File::Temp are closed and not reused. This is not as secure as using File::Temp handles directly, but is less prone to deadlocks or access problems on some platforms. Think of what <code>Path::Tiny</code> gives you to be just a temporary file <b>name</b> that gets cleaned up.</p>

<p><b>Note 2</b>: if you don&#39;t want these cleaned up automatically when the object is destroyed, File::Temp requires different options for directories and files. Use <code>CLEANUP =&gt; 0</code> for directories and <code>UNLINK =&gt; 0</code> for files.</p>

<p><b>Note 3</b>: Don&#39;t lose the temporary object by chaining a method call instead of storing it:</p>

<pre><code>    my $lost = tempdir()-&gt;child(&quot;foo&quot;); # tempdir cleaned up right away</code></pre>

<p><b>Note 4</b>: The cached object may be accessed with the <a href="./Path::Tiny.html#cached_temp">&quot;cached_temp&quot;</a> method. Keeping a reference to, or modifying the cached object may break the behavior documented above and is not supported. Use at your own risk.</p>

<p>Current API available since 0.119.</p>

<h1 id="METHODS">METHODS</h1>

<h2 id="absolute">absolute</h2>

<pre><code>    $abs = path(&quot;foo/bar&quot;)-&gt;absolute;
    $abs = path(&quot;foo/bar&quot;)-&gt;absolute(&quot;/tmp&quot;);</code></pre>

<p>Returns a new <code>Path::Tiny</code> object with an absolute path (or itself if already absolute). If no argument is given, the current directory is used as the absolute base path. If an argument is given, it will be converted to an absolute path (if it is not already) and used as the absolute base path.</p>

<p>This will not resolve upward directories (&quot;foo/../bar&quot;) unless <code>canonpath</code> in <a href="https://metacpan.org/pod/File::Spec">File::Spec</a> would normally do so on your platform. If you need them resolved, you must call the more expensive <code>realpath</code> method instead.</p>

<p>On Windows, an absolute path without a volume component will have it added based on the current drive.</p>

<p>Current API available since 0.101.</p>

<h2 id="append,-append_raw,-append_utf8"><a id="append"></a><a id="append--append_raw--append_utf8"></a>append, append_raw, append_utf8</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;append(@data);
    path(&quot;foo.txt&quot;)-&gt;append(\@data);
    path(&quot;foo.txt&quot;)-&gt;append({binmode =&gt; &quot;:raw&quot;}, @data);
    path(&quot;foo.txt&quot;)-&gt;append_raw(@data);
    path(&quot;foo.txt&quot;)-&gt;append_utf8(@data);</code></pre>

<p>Appends data to a file. The file is locked with <code>flock</code> prior to writing and closed afterwards. An optional hash reference may be used to pass options. Valid options are:</p>

<ul>

<li><p><code>binmode</code>: passed to <code>binmode()</code> on the handle used for writing.</p>

</li>
<li><p><code>truncate</code>: truncates the file after locking and before appending</p>

</li>
</ul>

<p>The <code>truncate</code> option is a way to replace the contents of a file <b>in place</b>, unlike <a href="./Path::Tiny.html#spew">&quot;spew&quot;</a> which writes to a temporary file and then replaces the original (if it exists).</p>

<p><code>append_raw</code> is like <code>append</code> with a <code>binmode</code> of <code>:unix</code> for a fast, unbuffered, raw write.</p>

<p><code>append_utf8</code> is like <code>append</code> with an unbuffered <code>binmode</code> <code>:unix:encoding(UTF-8)</code> (or <code>:unix:utf8_strict</code> with <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a>). If <a href="https://metacpan.org/pod/Unicode::UTF8">Unicode::UTF8</a> 0.58+ is installed, an unbuffered, raw append will be done instead on the data encoded with <code>Unicode::UTF8</code>.</p>

<p>Current API available since 0.060.</p>

<h2 id="assert">assert</h2>

<pre><code>    $path = path(&quot;foo.txt&quot;)-&gt;assert( sub { $_-&gt;exists } );</code></pre>

<p>Returns the invocant after asserting that a code reference argument returns true. When the assertion code reference runs, it will have the invocant object in the <code>$_</code> variable. If it returns false, an exception will be thrown. The assertion code reference may also throw its own exception.</p>

<p>If no assertion is provided, the invocant is returned without error.</p>

<p>Current API available since 0.062.</p>

<h2 id="basename">basename</h2>

<pre><code>    $name = path(&quot;foo/bar.txt&quot;)-&gt;basename;        # bar.txt
    $name = path(&quot;foo.txt&quot;)-&gt;basename(&#39;.txt&#39;);    # foo
    $name = path(&quot;foo.txt&quot;)-&gt;basename(qr/.txt/);  # foo
    $name = path(&quot;foo.txt&quot;)-&gt;basename(@suffixes);</code></pre>

<p>Returns the file portion or last directory portion of a path.</p>

<p>Given a list of suffixes as strings or regular expressions, any that match at the end of the file portion or last directory portion will be removed before the result is returned.</p>

<p>Current API available since 0.054.</p>

<h2 id="canonpath">canonpath</h2>

<pre><code>    $canonical = path(&quot;foo/bar&quot;)-&gt;canonpath; # foo\bar on Windows</code></pre>

<p>Returns a string with the canonical format of the path name for the platform. In particular, this means directory separators will be <code>\</code> on Windows.</p>

<p>Current API available since 0.001.</p>

<h2 id="cached_temp">cached_temp</h2>

<p>Returns the cached <code>File::Temp</code> or <code>File::Temp::Dir</code> object if the <code>Path::Tiny</code> object was created with <code>/tempfile</code> or <code>/tempdir</code>. If there is no such object, this method throws.</p>

<p><b>WARNING</b>: Keeping a reference to, or modifying the cached object may break the behavior documented for temporary files and directories created with <code>Path::Tiny</code> and is not supported. Use at your own risk.</p>

<p>Current API available since 0.101.</p>

<h2 id="child">child</h2>

<pre><code>    $file = path(&quot;/tmp&quot;)-&gt;child(&quot;foo.txt&quot;); # &quot;/tmp/foo.txt&quot;
    $file = path(&quot;/tmp&quot;)-&gt;child(@parts);</code></pre>

<p>Returns a new <code>Path::Tiny</code> object relative to the original. Works like <code>catfile</code> or <code>catdir</code> from File::Spec, but without caring about file or directories.</p>

<p><b>WARNING</b>: because the argument could contain <code>..</code> or refer to symlinks, there is no guarantee that the new path refers to an actual descendent of the original. If this is important to you, transform parent and child with <a href="./Path::Tiny.html#realpath">&quot;realpath&quot;</a> and check them with <a href="./Path::Tiny.html#subsumes">&quot;subsumes&quot;</a>.</p>

<p>Current API available since 0.001.</p>

<h2 id="children">children</h2>

<pre><code>    @paths = path(&quot;/tmp&quot;)-&gt;children;
    @paths = path(&quot;/tmp&quot;)-&gt;children( qr/\.txt\z/ );</code></pre>

<p>Returns a list of <code>Path::Tiny</code> objects for all files and directories within a directory. Excludes &quot;.&quot; and &quot;..&quot; automatically.</p>

<p>If an optional <code>qr//</code> argument is provided, it only returns objects for child names that match the given regular expression. Only the base name is used for matching:</p>

<pre><code>    @paths = path(&quot;/tmp&quot;)-&gt;children( qr/^foo/ );
    # matches children like the glob foo*</code></pre>

<p>Current API available since 0.028.</p>

<h2 id="chmod">chmod</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;chmod(0777);
    path(&quot;foo.txt&quot;)-&gt;chmod(&quot;0755&quot;);
    path(&quot;foo.txt&quot;)-&gt;chmod(&quot;go-w&quot;);
    path(&quot;foo.txt&quot;)-&gt;chmod(&quot;a=r,u+wx&quot;);</code></pre>

<p>Sets file or directory permissions. The argument can be a numeric mode, a octal string beginning with a &quot;0&quot; or a limited subset of the symbolic mode use by <i>/bin/chmod</i>.</p>

<p>The symbolic mode must be a comma-delimited list of mode clauses. Clauses must match <code>qr/\A([augo]+)([=+-])([rwx]+)\z/</code>, which defines &quot;who&quot;, &quot;op&quot; and &quot;perms&quot; parameters for each clause. Unlike <i>/bin/chmod</i>, all three parameters are required for each clause, multiple ops are not allowed and permissions <code>stugoX</code> are not supported. (See <a href="https://metacpan.org/pod/File::chmod">File::chmod</a> for more complex needs.)</p>

<p>Current API available since 0.053.</p>

<h2 id="copy">copy</h2>

<pre><code>    path(&quot;/tmp/foo.txt&quot;)-&gt;copy(&quot;/tmp/bar.txt&quot;);</code></pre>

<p>Copies the current path to the given destination using <a href="https://metacpan.org/pod/File::Copy">File::Copy</a>&#39;s <code>copy</code> function. Upon success, returns the <code>Path::Tiny</code> object for the newly copied file.</p>

<p>Current API available since 0.070.</p>

<h2 id="digest">digest</h2>

<pre><code>    $obj = path(&quot;/tmp/foo.txt&quot;)-&gt;digest;        # SHA-256
    $obj = path(&quot;/tmp/foo.txt&quot;)-&gt;digest(&quot;MD5&quot;); # user-selected
    $obj = path(&quot;/tmp/foo.txt&quot;)-&gt;digest( { chunk_size =&gt; 1e6 }, &quot;MD5&quot; );</code></pre>

<p>Returns a hexadecimal digest for a file. An optional hash reference of options may be given. The only option is <code>chunk_size</code>. If <code>chunk_size</code> is given, that many bytes will be read at a time. If not provided, the entire file will be slurped into memory to compute the digest.</p>

<p>Any subsequent arguments are passed to the constructor for <a href="https://metacpan.org/pod/Digest">Digest</a> to select an algorithm. If no arguments are given, the default is SHA-256.</p>

<p>Current API available since 0.056.</p>

<h2 id="dirname-(deprecated)"><a id="dirname"></a><a id="dirname--deprecated"></a>dirname (deprecated)</h2>

<pre><code>    $name = path(&quot;/tmp/foo.txt&quot;)-&gt;dirname; # &quot;/tmp/&quot;</code></pre>

<p>Returns the directory portion you would get from calling <code>File::Spec-&gt;splitpath( $path-&gt;stringify )</code> or <code>&quot;.&quot;</code> for a path without a parent directory portion. Because <a href="https://metacpan.org/pod/File::Spec">File::Spec</a> is inconsistent, the result might or might not have a trailing slash. Because of this, this method is <b>deprecated</b>.</p>

<p>A better, more consistently approach is likely <code>$path-&gt;parent-&gt;stringify</code>, which will not have a trailing slash except for a root directory.</p>

<p>Deprecated in 0.056.</p>

<h2 id="edit,-edit_raw,-edit_utf8"><a id="edit"></a><a id="edit--edit_raw--edit_utf8"></a>edit, edit_raw, edit_utf8</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;edit( \&amp;callback, $options );
    path(&quot;foo.txt&quot;)-&gt;edit_utf8( \&amp;callback );
    path(&quot;foo.txt&quot;)-&gt;edit_raw( \&amp;callback );</code></pre>

<p>These are convenience methods that allow &quot;editing&quot; a file using a single callback argument. They slurp the file using <code>slurp</code>, place the contents inside a localized <code>$_</code> variable, call the callback function (without arguments), and then write <code>$_</code> (presumably mutated) back to the file with <code>spew</code>.</p>

<p>An optional hash reference may be used to pass options. The only option is <code>binmode</code>, which is passed to <code>slurp</code> and <code>spew</code>.</p>

<p><code>edit_utf8</code> and <code>edit_raw</code> act like their respective <code>slurp_*</code> and <code>spew_*</code> methods.</p>

<p>Current API available since 0.077.</p>

<h2 id="edit_lines,-edit_lines_utf8,-edit_lines_raw"><a id="edit_lines"></a><a id="edit_lines--edit_lines_utf8--edit_lines_raw"></a>edit_lines, edit_lines_utf8, edit_lines_raw</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;edit_lines( \&amp;callback, $options );
    path(&quot;foo.txt&quot;)-&gt;edit_lines_utf8( \&amp;callback );
    path(&quot;foo.txt&quot;)-&gt;edit_lines_raw( \&amp;callback );</code></pre>

<p>These are convenience methods that allow &quot;editing&quot; a file&#39;s lines using a single callback argument. They iterate over the file: for each line, the line is put into a localized <code>$_</code> variable, the callback function is executed (without arguments) and then <code>$_</code> is written to a temporary file. When iteration is finished, the temporary file is atomically renamed over the original.</p>

<p>An optional hash reference may be used to pass options. The only option is <code>binmode</code>, which is passed to the method that open handles for reading and writing.</p>

<p><code>edit_lines_raw</code> is like <code>edit_lines</code> with a buffered <code>binmode</code> of <code>:raw</code>.</p>

<p><code>edit_lines_utf8</code> is like <code>edit_lines</code> with a buffered <code>binmode</code> <code>:raw:encoding(UTF-8)</code> (or <code>:raw:utf8_strict</code> with <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a>).</p>

<p>Current API available since 0.077.</p>

<h2 id="exists,-is_file,-is_dir"><a id="exists"></a><a id="exists--is_file--is_dir"></a>exists, is_file, is_dir</h2>

<pre><code>    if ( path(&quot;/tmp&quot;)-&gt;exists ) { ... }     # -e
    if ( path(&quot;/tmp&quot;)-&gt;is_dir ) { ... }     # -d
    if ( path(&quot;/tmp&quot;)-&gt;is_file ) { ... }    # -e &amp;&amp; ! -d</code></pre>

<p>Implements file test operations, this means the file or directory actually has to exist on the filesystem. Until then, it&#39;s just a path.</p>

<p><b>Note</b>: <code>is_file</code> is not <code>-f</code> because <code>-f</code> is not the opposite of <code>-d</code>. <code>-f</code> means &quot;plain file&quot;, excluding symlinks, devices, etc. that often can be read just like files.</p>

<p>Use <code>-f</code> instead if you really mean to check for a plain file.</p>

<p>Current API available since 0.053.</p>

<h2 id="filehandle">filehandle</h2>

<pre><code>    $fh = path(&quot;/tmp/foo.txt&quot;)-&gt;filehandle($mode, $binmode);
    $fh = path(&quot;/tmp/foo.txt&quot;)-&gt;filehandle({ locked =&gt; 1 }, $mode, $binmode);
    $fh = path(&quot;/tmp/foo.txt&quot;)-&gt;filehandle({ exclusive =&gt; 1  }, $mode, $binmode);</code></pre>

<p>Returns an open file handle. The <code>$mode</code> argument must be a Perl-style read/write mode string (&quot;&lt;&quot; ,&quot;&gt;&quot;, &quot;&gt;&gt;&quot;, etc.). If a <code>$binmode</code> is given, it is set during the <code>open</code> call.</p>

<p>An optional hash reference may be used to pass options.</p>

<p>The <code>locked</code> option governs file locking; if true, handles opened for writing, appending or read-write are locked with <code>LOCK_EX</code>; otherwise, they are locked with <code>LOCK_SH</code>. When using <code>locked</code>, &quot;&gt;&quot; or &quot;+&gt;&quot; modes will delay truncation until after the lock is acquired.</p>

<p>The <code>exclusive</code> option causes the open() call to fail if the file already exists. This corresponds to the O_EXCL flag to sysopen / open(2). <code>exclusive</code> implies <code>locked</code> and will set it for you if you forget it.</p>

<p>See <code>openr</code>, <code>openw</code>, <code>openrw</code>, and <code>opena</code> for sugar.</p>

<p>Current API available since 0.066.</p>

<h2 id="has_same_bytes">has_same_bytes</h2>

<pre><code>    if ( path(&quot;foo.txt&quot;)-&gt;has_same_bytes(&quot;bar.txt&quot;) ) {
       # ...
    }</code></pre>

<p>This method returns true if both the invocant and the argument can be opened as file handles and the handles contain the same bytes. It returns false if their contents differ. If either can&#39;t be opened as a file (e.g. a directory or non-existent file), the method throws an exception. If both can be opened and both have the same <code>realpath</code>, the method returns true without scanning any data.</p>

<p>Current API available since 0.125.</p>

<h2 id="is_absolute,-is_relative"><a id="is_absolute"></a><a id="is_absolute--is_relative"></a>is_absolute, is_relative</h2>

<pre><code>    if ( path(&quot;/tmp&quot;)-&gt;is_absolute ) { ... }
    if ( path(&quot;/tmp&quot;)-&gt;is_relative ) { ... }</code></pre>

<p>Booleans for whether the path appears absolute or relative.</p>

<p>Current API available since 0.001.</p>

<h2 id="is_rootdir">is_rootdir</h2>

<pre><code>    while ( ! $path-&gt;is_rootdir ) {
        $path = $path-&gt;parent;
        ...
    }</code></pre>

<p>Boolean for whether the path is the root directory of the volume. I.e. the <code>dirname</code> is <code>q[/]</code> and the <code>basename</code> is <code>q[]</code>.</p>

<p>This works even on <code>MSWin32</code> with drives and UNC volumes:</p>

<pre><code>    path(&quot;C:/&quot;)-&gt;is_rootdir;             # true
    path(&quot;//server/share/&quot;)-&gt;is_rootdir; #true</code></pre>

<p>Current API available since 0.038.</p>

<h2 id="iterator">iterator</h2>

<pre><code>    $iter = path(&quot;/tmp&quot;)-&gt;iterator( \%options );</code></pre>

<p>Returns a code reference that walks a directory lazily. Each invocation returns a <code>Path::Tiny</code> object or undef when the iterator is exhausted.</p>

<pre><code>    $iter = path(&quot;/tmp&quot;)-&gt;iterator;
    while ( $path = $iter-&gt;() ) {
        ...
    }</code></pre>

<p>The current and parent directory entries (&quot;.&quot; and &quot;..&quot;) will not be included.</p>

<p>If the <code>recurse</code> option is true, the iterator will walk the directory recursively, breadth-first. If the <code>follow_symlinks</code> option is also true, directory links will be followed recursively. There is no protection against loops when following links. If a directory is not readable, it will not be followed.</p>

<p>The default is the same as:</p>

<pre><code>    $iter = path(&quot;/tmp&quot;)-&gt;iterator( {
        recurse         =&gt; 0,
        follow_symlinks =&gt; 0,
    } );</code></pre>

<p>For a more powerful, recursive iterator with built-in loop avoidance, see <a href="https://metacpan.org/pod/Path::Iterator::Rule">Path::Iterator::Rule</a>.</p>

<p>See also <a href="./Path::Tiny.html#visit">&quot;visit&quot;</a>.</p>

<p>Current API available since 0.016.</p>

<h2 id="lines,-lines_raw,-lines_utf8"><a id="lines"></a><a id="lines--lines_raw--lines_utf8"></a>lines, lines_raw, lines_utf8</h2>

<pre><code>    @contents = path(&quot;/tmp/foo.txt&quot;)-&gt;lines;
    @contents = path(&quot;/tmp/foo.txt&quot;)-&gt;lines(\%options);
    @contents = path(&quot;/tmp/foo.txt&quot;)-&gt;lines_raw;
    @contents = path(&quot;/tmp/foo.txt&quot;)-&gt;lines_utf8;

    @contents = path(&quot;/tmp/foo.txt&quot;)-&gt;lines( { chomp =&gt; 1, count =&gt; 4 } );</code></pre>

<p>Returns a list of lines from a file. Optionally takes a hash-reference of options. Valid options are <code>binmode</code>, <code>count</code> and <code>chomp</code>.</p>

<p>If <code>binmode</code> is provided, it will be set on the handle prior to reading.</p>

<p>If a positive <code>count</code> is provided, that many lines will be returned from the start of the file. If a negative <code>count</code> is provided, the entire file will be read, but only <code>abs(count)</code> will be kept and returned. If <code>abs(count)</code> exceeds the number of lines in the file, all lines will be returned.</p>

<p>If <code>chomp</code> is set, any end-of-line character sequences (<code>CR</code>, <code>CRLF</code>, or <code>LF</code>) will be removed from the lines returned.</p>

<p>Because the return is a list, <code>lines</code> in scalar context will return the number of lines (and throw away the data).</p>

<pre><code>    $number_of_lines = path(&quot;/tmp/foo.txt&quot;)-&gt;lines;</code></pre>

<p><code>lines_raw</code> is like <code>lines</code> with a <code>binmode</code> of <code>:raw</code>. We use <code>:raw</code> instead of <code>:unix</code> so PerlIO buffering can manage reading by line.</p>

<p><code>lines_utf8</code> is like <code>lines</code> with a <code>binmode</code> of <code>:raw:encoding(UTF-8)</code> (or <code>:raw:utf8_strict</code> with <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a>). If <a href="https://metacpan.org/pod/Unicode::UTF8">Unicode::UTF8</a> 0.58+ is installed, a raw, unbuffered UTF-8 slurp will be done and then the lines will be split. This is actually faster than relying on IO layers, though a bit memory intensive. If memory use is a concern, consider <code>openr_utf8</code> and iterating directly on the handle.</p>

<p>Current API available since 0.065.</p>

<h2 id="mkdir">mkdir</h2>

<pre><code>    path(&quot;foo/bar/baz&quot;)-&gt;mkdir;
    path(&quot;foo/bar/baz&quot;)-&gt;mkdir( \%options );</code></pre>

<p>Like calling <code>make_path</code> from <a href="https://metacpan.org/pod/File::Path">File::Path</a>. An optional hash reference is passed through to <code>make_path</code>. Errors will be trapped and an exception thrown. Returns the the path object to facilitate chaining.</p>

<p><b>NOTE</b>: unlike Perl&#39;s builtin <code>mkdir</code>, this will create intermediate paths similar to the Unix <code>mkdir -p</code> command. It will not error if applied to an existing directory.</p>

<p>Current API available since 0.125.</p>

<h2 id="mkpath-(deprecated)"><a id="mkpath"></a><a id="mkpath--deprecated"></a>mkpath (deprecated)</h2>

<p>Like calling <code>mkdir</code>, but returns the list of directories created or an empty list if the directories already exist, just like <code>make_path</code>.</p>

<p>Deprecated in 0.125.</p>

<h2 id="move">move</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;move(&quot;bar.txt&quot;);</code></pre>

<p>Moves the current path to the given destination using <a href="https://metacpan.org/pod/File::Copy">File::Copy</a>&#39;s <code>move</code> function. Upon success, returns the <code>Path::Tiny</code> object for the newly moved file.</p>

<p>If the destination already exists and is a directory, and the source is not a directory, then the source file will be renamed into the directory specified by the destination.</p>

<p>If possible, move() will simply rename the file. Otherwise, it copies the file to the new location and deletes the original. If an error occurs during this copy-and-delete process, you may be left with a (possibly partial) copy of the file under the destination name.</p>

<p>Current API available since 0.124. Prior versions used Perl&#39;s -built-in (and less robust) <a href="functions/CORE.html#rename">rename</a> function and did not return an object.</p>

<h2 id="openr,-openw,-openrw,-opena"><a id="openr"></a><a id="openr--openw--openrw--opena"></a>openr, openw, openrw, opena</h2>

<pre><code>    $fh = path(&quot;foo.txt&quot;)-&gt;openr($binmode);  # read
    $fh = path(&quot;foo.txt&quot;)-&gt;openr_raw;
    $fh = path(&quot;foo.txt&quot;)-&gt;openr_utf8;

    $fh = path(&quot;foo.txt&quot;)-&gt;openw($binmode);  # write
    $fh = path(&quot;foo.txt&quot;)-&gt;openw_raw;
    $fh = path(&quot;foo.txt&quot;)-&gt;openw_utf8;

    $fh = path(&quot;foo.txt&quot;)-&gt;opena($binmode);  # append
    $fh = path(&quot;foo.txt&quot;)-&gt;opena_raw;
    $fh = path(&quot;foo.txt&quot;)-&gt;opena_utf8;

    $fh = path(&quot;foo.txt&quot;)-&gt;openrw($binmode); # read/write
    $fh = path(&quot;foo.txt&quot;)-&gt;openrw_raw;
    $fh = path(&quot;foo.txt&quot;)-&gt;openrw_utf8;</code></pre>

<p>Returns a file handle opened in the specified mode. The <code>openr</code> style methods take a single <code>binmode</code> argument. All of the <code>open*</code> methods have <code>open*_raw</code> and <code>open*_utf8</code> equivalents that use buffered I/O layers <code>:raw</code> and <code>:raw:encoding(UTF-8)</code> (or <code>:raw:utf8_strict</code> with <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a>).</p>

<p>An optional hash reference may be used to pass options. The only option is <code>locked</code>. If true, handles opened for writing, appending or read-write are locked with <code>LOCK_EX</code>; otherwise, they are locked for <code>LOCK_SH</code>.</p>

<pre><code>    $fh = path(&quot;foo.txt&quot;)-&gt;openrw_utf8( { locked =&gt; 1 } );</code></pre>

<p>See <a href="./Path::Tiny.html#filehandle">&quot;filehandle&quot;</a> for more on locking.</p>

<p>Current API available since 0.011.</p>

<h2 id="parent">parent</h2>

<pre><code>    $parent = path(&quot;foo/bar/baz&quot;)-&gt;parent; # foo/bar
    $parent = path(&quot;foo/wibble.txt&quot;)-&gt;parent; # foo

    $parent = path(&quot;foo/bar/baz&quot;)-&gt;parent(2); # foo</code></pre>

<p>Returns a <code>Path::Tiny</code> object corresponding to the parent directory of the original directory or file. An optional positive integer argument is the number of parent directories upwards to return. <code>parent</code> by itself is equivalent to <code>parent(1)</code>.</p>

<p>Current API available since 0.014.</p>

<h2 id="realpath">realpath</h2>

<pre><code>    $real = path(&quot;/baz/foo/../bar&quot;)-&gt;realpath;
    $real = path(&quot;foo/../bar&quot;)-&gt;realpath;</code></pre>

<p>Returns a new <code>Path::Tiny</code> object with all symbolic links and upward directory parts resolved using <a href="https://metacpan.org/pod/Cwd">Cwd</a>&#39;s <code>realpath</code>. Compared to <code>absolute</code>, this is more expensive as it must actually consult the filesystem.</p>

<p>If the parent path can&#39;t be resolved (e.g. if it includes directories that don&#39;t exist), an exception will be thrown:</p>

<pre><code>    $real = path(&quot;doesnt_exist/foo&quot;)-&gt;realpath; # dies</code></pre>

<p>However, if the parent path exists and only the last component (e.g. filename) doesn&#39;t exist, the realpath will be the realpath of the parent plus the non-existent last component:</p>

<pre><code>    $real = path(&quot;./aasdlfasdlf&quot;)-&gt;realpath; # works</code></pre>

<p>The underlying <a href="https://metacpan.org/pod/Cwd">Cwd</a> module usually worked this way on Unix, but died on Windows (and some Unixes) if the full path didn&#39;t exist. As of version 0.064, it&#39;s safe to use anywhere.</p>

<p>Current API available since 0.001.</p>

<h2 id="relative">relative</h2>

<pre><code>    $rel = path(&quot;/tmp/foo/bar&quot;)-&gt;relative(&quot;/tmp&quot;); # foo/bar</code></pre>

<p>Returns a <code>Path::Tiny</code> object with a path relative to a new base path given as an argument. If no argument is given, the current directory will be used as the new base path.</p>

<p>If either path is already relative, it will be made absolute based on the current directly before determining the new relative path.</p>

<p>The algorithm is roughly as follows:</p>

<ul>

<li><p>If the original and new base path are on different volumes, an exception will be thrown.</p>

</li>
<li><p>If the original and new base are identical, the relative path is <code>&quot;.&quot;</code>.</p>

</li>
<li><p>If the new base subsumes the original, the relative path is the original path with the new base chopped off the front</p>

</li>
<li><p>If the new base does not subsume the original, a common prefix path is determined (possibly the root directory) and the relative path will consist of updirs (<code>&quot;..&quot;</code>) to reach the common prefix, followed by the original path less the common prefix.</p>

</li>
</ul>

<p>Unlike <code>File::Spec::abs2rel</code>, in the last case above, the calculation based on a common prefix takes into account symlinks that could affect the updir process. Given an original path &quot;/A/B&quot; and a new base &quot;/A/C&quot;, (where &quot;A&quot;, &quot;B&quot; and &quot;C&quot; could each have multiple path components):</p>

<ul>

<li><p>Symlinks in &quot;A&quot; don&#39;t change the result unless the last component of A is a symlink and the first component of &quot;C&quot; is an updir.</p>

</li>
<li><p>Symlinks in &quot;B&quot; don&#39;t change the result and will exist in the result as given.</p>

</li>
<li><p>Symlinks and updirs in &quot;C&quot; must be resolved to actual paths, taking into account the possibility that not all path components might exist on the filesystem.</p>

</li>
</ul>

<p>Current API available since 0.001. New algorithm (that accounts for symlinks) available since 0.079.</p>

<h2 id="remove">remove</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;remove;</code></pre>

<p>This is just like <code>unlink</code>, except for its error handling: if the path does not exist, it returns false; if deleting the file fails, it throws an exception.</p>

<p>Current API available since 0.012.</p>

<h2 id="remove_tree">remove_tree</h2>

<pre><code>    # directory
    path(&quot;foo/bar/baz&quot;)-&gt;remove_tree;
    path(&quot;foo/bar/baz&quot;)-&gt;remove_tree( \%options );
    path(&quot;foo/bar/baz&quot;)-&gt;remove_tree( { safe =&gt; 0 } ); # force remove</code></pre>

<p>Like calling <code>remove_tree</code> from <a href="https://metacpan.org/pod/File::Path">File::Path</a>, but defaults to <code>safe</code> mode. An optional hash reference is passed through to <code>remove_tree</code>. Errors will be trapped and an exception thrown. Returns the number of directories deleted, just like <code>remove_tree</code>.</p>

<p>If you want to remove a directory only if it is empty, use the built-in <code>rmdir</code> function instead.</p>

<pre><code>    rmdir path(&quot;foo/bar/baz/&quot;);</code></pre>

<p>Current API available since 0.013.</p>

<h2 id="sibling">sibling</h2>

<pre><code>    $foo = path(&quot;/tmp/foo.txt&quot;);
    $sib = $foo-&gt;sibling(&quot;bar.txt&quot;);        # /tmp/bar.txt
    $sib = $foo-&gt;sibling(&quot;baz&quot;, &quot;bam.txt&quot;); # /tmp/baz/bam.txt</code></pre>

<p>Returns a new <code>Path::Tiny</code> object relative to the parent of the original. This is slightly more efficient than <code>$path-&gt;parent-&gt;child(...)</code>.</p>

<p>Current API available since 0.058.</p>

<h2 id="size,-size_human"><a id="size"></a><a id="size--size_human"></a>size, size_human</h2>

<pre><code>    my $p = path(&quot;foo&quot;); # with size 1025 bytes

    $p-&gt;size;                            # &quot;1025&quot;
    $p-&gt;size_human;                      # &quot;1.1 K&quot;
    $p-&gt;size_human( {format =&gt; &quot;iec&quot;} ); # &quot;1.1 KiB&quot;</code></pre>

<p>Returns the size of a file. The <code>size</code> method is just a wrapper around <code>-s</code>.</p>

<p>The <code>size_human</code> method provides a human-readable string similar to <code>ls -lh</code>. Like <code>ls</code>, it rounds upwards and provides one decimal place for single-digit sizes and no decimal places for larger sizes. The only available option is <code>format</code>, which has three valid values:</p>

<ul>

<li><p>&#39;ls&#39; (the default): base-2 sizes, with <code>ls</code> style single-letter suffixes (K, M, etc.)</p>

</li>
<li><p>&#39;iec&#39;: base-2 sizes, with IEC binary suffixes (KiB, MiB, etc.)</p>

</li>
<li><p>&#39;si&#39;: base-10 sizes, with SI decimal suffixes (kB, MB, etc.)</p>

</li>
</ul>

<p>If <code>-s</code> would return <code>undef</code>, <code>size_human</code> returns the empty string.</p>

<p>Current API available since 0.122.</p>

<h2 id="slurp,-slurp_raw,-slurp_utf8"><a id="slurp"></a><a id="slurp--slurp_raw--slurp_utf8"></a>slurp, slurp_raw, slurp_utf8</h2>

<pre><code>    $data = path(&quot;foo.txt&quot;)-&gt;slurp;
    $data = path(&quot;foo.txt&quot;)-&gt;slurp( {binmode =&gt; &quot;:raw&quot;} );
    $data = path(&quot;foo.txt&quot;)-&gt;slurp_raw;
    $data = path(&quot;foo.txt&quot;)-&gt;slurp_utf8;</code></pre>

<p>Reads file contents into a scalar. Takes an optional hash reference which may be used to pass options. The only available option is <code>binmode</code>, which is passed to <code>binmode()</code> on the handle used for reading.</p>

<p><code>slurp_raw</code> is like <code>slurp</code> with a <code>binmode</code> of <code>:unix</code> for a fast, unbuffered, raw read.</p>

<p><code>slurp_utf8</code> is like <code>slurp</code> with a <code>binmode</code> of <code>:unix:encoding(UTF-8)</code> (or <code>:unix:utf8_strict</code> with <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a>). If <a href="https://metacpan.org/pod/Unicode::UTF8">Unicode::UTF8</a> 0.58+ is installed, a unbuffered, raw slurp will be done instead and the result decoded with <code>Unicode::UTF8</code>. This is just as strict and is roughly an order of magnitude faster than using <code>:encoding(UTF-8)</code>.</p>

<p><b>Note</b>: <code>slurp</code> and friends lock the filehandle before slurping. If you plan to slurp from a file created with <a href="https://metacpan.org/pod/File::Temp">File::Temp</a>, be sure to close other handles or open without locking to avoid a deadlock:</p>

<pre><code>    my $tempfile = File::Temp-&gt;new(EXLOCK =&gt; 0);
    my $guts = path($tempfile)-&gt;slurp;</code></pre>

<p>Current API available since 0.004.</p>

<h2 id="spew,-spew_raw,-spew_utf8"><a id="spew"></a><a id="spew--spew_raw--spew_utf8"></a>spew, spew_raw, spew_utf8</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;spew(@data);
    path(&quot;foo.txt&quot;)-&gt;spew(\@data);
    path(&quot;foo.txt&quot;)-&gt;spew({binmode =&gt; &quot;:raw&quot;}, @data);
    path(&quot;foo.txt&quot;)-&gt;spew_raw(@data);
    path(&quot;foo.txt&quot;)-&gt;spew_utf8(@data);</code></pre>

<p>Writes data to a file atomically. The file is written to a temporary file in the same directory, then renamed over the original. An optional hash reference may be used to pass options. The only option is <code>binmode</code>, which is passed to <code>binmode()</code> on the handle used for writing.</p>

<p><code>spew_raw</code> is like <code>spew</code> with a <code>binmode</code> of <code>:unix</code> for a fast, unbuffered, raw write.</p>

<p><code>spew_utf8</code> is like <code>spew</code> with a <code>binmode</code> of <code>:unix:encoding(UTF-8)</code> (or <code>:unix:utf8_strict</code> with <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a>). If <a href="https://metacpan.org/pod/Unicode::UTF8">Unicode::UTF8</a> 0.58+ is installed, a raw, unbuffered spew will be done instead on the data encoded with <code>Unicode::UTF8</code>.</p>

<p><b>NOTE</b>: because the file is written to a temporary file and then renamed, the new file will wind up with permissions based on your current umask. This is a feature to protect you from a race condition that would otherwise give different permissions than you might expect. If you really want to keep the original mode flags, use <a href="./Path::Tiny.html#append">&quot;append&quot;</a> with the <code>truncate</code> option.</p>

<p>Current API available since 0.011.</p>

<h2 id="stat,-lstat"><a id="stat"></a><a id="stat--lstat"></a>stat, lstat</h2>

<pre><code>    $stat = path(&quot;foo.txt&quot;)-&gt;stat;
    $stat = path(&quot;/some/symlink&quot;)-&gt;lstat;</code></pre>

<p>Like calling <code>stat</code> or <code>lstat</code> from <a href="https://metacpan.org/pod/File::stat">File::stat</a>.</p>

<p>Current API available since 0.001.</p>

<h2 id="stringify">stringify</h2>

<pre><code>    $path = path(&quot;foo.txt&quot;);
    say $path-&gt;stringify; # same as &quot;$path&quot;</code></pre>

<p>Returns a string representation of the path. Unlike <code>canonpath</code>, this method returns the path standardized with Unix-style <code>/</code> directory separators.</p>

<p>Current API available since 0.001.</p>

<h2 id="subsumes">subsumes</h2>

<pre><code>    path(&quot;foo/bar&quot;)-&gt;subsumes(&quot;foo/bar/baz&quot;); # true
    path(&quot;/foo/bar&quot;)-&gt;subsumes(&quot;/foo/baz&quot;);   # false</code></pre>

<p>Returns true if the first path is a prefix of the second path at a directory boundary.</p>

<p>This <b>does not</b> resolve parent directory entries (<code>..</code>) or symlinks:</p>

<pre><code>    path(&quot;foo/bar&quot;)-&gt;subsumes(&quot;foo/bar/../baz&quot;); # true</code></pre>

<p>If such things are important to you, ensure that both paths are resolved to the filesystem with <code>realpath</code>:</p>

<pre><code>    my $p1 = path(&quot;foo/bar&quot;)-&gt;realpath;
    my $p2 = path(&quot;foo/bar/../baz&quot;)-&gt;realpath;
    if ( $p1-&gt;subsumes($p2) ) { ... }</code></pre>

<p>Current API available since 0.048.</p>

<h2 id="touch">touch</h2>

<pre><code>    path(&quot;foo.txt&quot;)-&gt;touch;
    path(&quot;foo.txt&quot;)-&gt;touch($epoch_secs);</code></pre>

<p>Like the Unix <code>touch</code> utility. Creates the file if it doesn&#39;t exist, or else changes the modification and access times to the current time. If the first argument is the epoch seconds then it will be used.</p>

<p>Returns the path object so it can be easily chained with other methods:</p>

<pre><code>    # won&#39;t die if foo.txt doesn&#39;t exist
    $content = path(&quot;foo.txt&quot;)-&gt;touch-&gt;slurp;</code></pre>

<p>Current API available since 0.015.</p>

<h2 id="touchpath">touchpath</h2>

<pre><code>    path(&quot;bar/baz/foo.txt&quot;)-&gt;touchpath;</code></pre>

<p>Combines <code>mkdir</code> and <code>touch</code>. Creates the parent directory if it doesn&#39;t exist, before touching the file. Returns the path object like <code>touch</code> does.</p>

<p>If you need to pass options, use <code>mkdir</code> and <code>touch</code> separately:</p>

<pre><code>    path(&quot;bar/baz&quot;)-&gt;mkdir( \%options )-&gt;child(&quot;foo.txt&quot;)-&gt;touch($epoch_secs);</code></pre>

<p>Current API available since 0.022.</p>

<h2 id="visit">visit</h2>

<pre><code>    path(&quot;/tmp&quot;)-&gt;visit( \&amp;callback, \%options );</code></pre>

<p>Executes a callback for each child of a directory. It returns a hash reference with any state accumulated during iteration.</p>

<p>The options are the same as for <a href="./Path::Tiny.html#iterator">&quot;iterator&quot;</a> (which it uses internally): <code>recurse</code> and <code>follow_symlinks</code>. Both default to false.</p>

<p>The callback function will receive a <code>Path::Tiny</code> object as the first argument and a hash reference to accumulate state as the second argument. For example:</p>

<pre><code>    # collect files sizes
    my $sizes = path(&quot;/tmp&quot;)-&gt;visit(
        sub {
            my ($path, $state) = @_;
            return if $path-&gt;is_dir;
            $state-&gt;{$path} = -s $path;
        },
        { recurse =&gt; 1 }
    );</code></pre>

<p>For convenience, the <code>Path::Tiny</code> object will also be locally aliased as the <code>$_</code> global variable:</p>

<pre><code>    # print paths matching /foo/
    path(&quot;/tmp&quot;)-&gt;visit( sub { say if /foo/ }, { recurse =&gt; 1} );</code></pre>

<p>If the callback returns a <b>reference</b> to a false scalar value, iteration will terminate. This is not the same as &quot;pruning&quot; a directory search; this just stops all iteration and returns the state hash reference.</p>

<pre><code>    # find up to 10 files larger than 100K
    my $files = path(&quot;/tmp&quot;)-&gt;visit(
        sub {
            my ($path, $state) = @_;
            $state-&gt;{$path}++ if -s $path &gt; 102400
            return \0 if keys %$state == 10;
        },
        { recurse =&gt; 1 }
    );</code></pre>

<p>If you want more flexible iteration, use a module like <a href="https://metacpan.org/pod/Path::Iterator::Rule">Path::Iterator::Rule</a>.</p>

<p>Current API available since 0.062.</p>

<h2 id="volume">volume</h2>

<pre><code>    $vol = path(&quot;/tmp/foo.txt&quot;)-&gt;volume;   # &quot;&quot;
    $vol = path(&quot;C:/tmp/foo.txt&quot;)-&gt;volume; # &quot;C:&quot;</code></pre>

<p>Returns the volume portion of the path. This is equivalent to what <a href="https://metacpan.org/pod/File::Spec">File::Spec</a> would give from <code>splitpath</code> and thus usually is the empty string on Unix-like operating systems or the drive letter for an absolute path on <code>MSWin32</code>.</p>

<p>Current API available since 0.001.</p>

<h1 id="EXCEPTION-HANDLING"><a id="EXCEPTION"></a>EXCEPTION HANDLING</h1>

<p>Simple usage errors will generally croak. Failures of underlying Perl functions will be thrown as exceptions in the class <code>Path::Tiny::Error</code>.</p>

<p>A <code>Path::Tiny::Error</code> object will be a hash reference with the following fields:</p>

<ul>

<li><p><code>op</code> &mdash; a description of the operation, usually function call and any extra info</p>

</li>
<li><p><code>file</code> &mdash; the file or directory relating to the error</p>

</li>
<li><p><code>err</code> &mdash; hold <code>$!</code> at the time the error was thrown</p>

</li>
<li><p><code>msg</code> &mdash; a string combining the above data and a Carp-like short stack trace</p>

</li>
</ul>

<p>Exception objects will stringify as the <code>msg</code> field.</p>

<h1 id="ENVIRONMENT">ENVIRONMENT</h1>

<h2 id="PERL_PATH_TINY_NO_FLOCK">PERL_PATH_TINY_NO_FLOCK</h2>

<p>If the environment variable <code>PERL_PATH_TINY_NO_FLOCK</code> is set to a true value then flock will NOT be used when accessing files (this is not recommended).</p>

<h1 id="CAVEATS">CAVEATS</h1>

<h2 id="Subclassing-not-supported"><a id="Subclassing"></a>Subclassing not supported</h2>

<p>For speed, this class is implemented as an array based object and uses many direct function calls internally. You must not subclass it and expect things to work properly.</p>

<h2 id="Tilde-expansion-(deprecated)"><a id="Tilde"></a><a id="Tilde-expansion--deprecated"></a>Tilde expansion (deprecated)</h2>

<p>Tilde expansion was a nice idea, but it can&#39;t easily be applied consistently across the entire API. This was a source of bugs and confusion for users. Therefore, it is <b>deprecated</b> and its use is discouraged. Limitations to the existing, legacy behavior follow.</p>

<p>Tilde expansion will only occur if the <b>first</b> argument to <code>path</code> begins with a tilde. <b>No other method does tilde expansion on its arguments</b>. If you want tilde expansion on arguments, you must explicitly wrap them in a call to <code>path</code>.</p>

<pre><code>    path( &quot;~/foo.txt&quot; )-&gt;copy( path( &quot;~/bar.txt&quot; ) );</code></pre>

<p>If you need a literal leading tilde, use <code>path(&quot;./~whatever&quot;)</code> so that the argument to <code>path</code> doesn&#39;t start with a tilde, but the path still resolves to the current directory.</p>

<p>Behaviour of tilde expansion with a username for non-existent users depends on the output of <code>glob</code> on the system.</p>

<h2 id="File-locking"><a id="File"></a>File locking</h2>

<p>If flock is not supported on a platform, it will not be used, even if locking is requested.</p>

<p>In situations where a platform normally would support locking, but the flock fails due to a filesystem limitation, Path::Tiny has some heuristics to detect this and will warn once and continue in an unsafe mode. If you want this failure to be fatal, you can fatalize the &#39;flock&#39; warnings category:</p>

<pre><code>    use warnings FATAL =&gt; &#39;flock&#39;;</code></pre>

<p>See additional caveats below.</p>

<h3 id="NFS-and-BSD"><a id="NFS"></a>NFS and BSD</h3>

<p>On BSD, Perl&#39;s flock implementation may not work to lock files on an NFS filesystem. If detected, this situation will warn once, as described above.</p>

<h3 id="Lustre">Lustre</h3>

<p>The Lustre filesystem does not support flock. If detected, this situation will warn once, as described above.</p>

<h3 id="AIX-and-locking"><a id="AIX"></a>AIX and locking</h3>

<p>AIX requires a write handle for locking. Therefore, calls that normally open a read handle and take a shared lock instead will open a read-write handle and take an exclusive lock. If the user does not have write permission, no lock will be used.</p>

<h2 id="utf8-vs-UTF-8"><a id="utf8"></a>utf8 vs UTF-8</h2>

<p>All the <code>*_utf8</code> methods by default use <code>:encoding(UTF-8)</code> -- either as <code>:unix:encoding(UTF-8)</code> (unbuffered, for whole file operations) or <code>:raw:encoding(UTF-8)</code> (buffered, for line-by-line operations). These are strict against the Unicode spec and disallows illegal Unicode codepoints or UTF-8 sequences.</p>

<p>Unfortunately, <code>:encoding(UTF-8)</code> is very, very slow. If you install <a href="https://metacpan.org/pod/Unicode::UTF8">Unicode::UTF8</a> 0.58 or later, that module will be used by some <code>*_utf8</code> methods to encode or decode data after a raw, binary input/output operation, which is much faster. Alternatively, if you install <a href="https://metacpan.org/pod/PerlIO::utf8_strict">PerlIO::utf8_strict</a>, that will be used instead of <code>:encoding(UTF-8)</code> and is also very fast.</p>

<p>If you need the performance and can accept the security risk, <code>slurp({binmode =&gt; &quot;:unix:utf8&quot;})</code> will be faster than <code>:unix:encoding(UTF-8)</code> (but not as fast as <code>Unicode::UTF8</code>).</p>

<p>Note that the <code>*_utf8</code> methods read in <b>raw</b> mode. There is no CRLF translation on Windows. If you must have CRLF translation, use the regular input/output methods with an appropriate binmode:</p>

<pre><code>  $path-&gt;spew_utf8($data);                            # raw
  $path-&gt;spew({binmode =&gt; &quot;:encoding(UTF-8)&quot;}, $data; # LF -&gt; CRLF</code></pre>

<h2 id="Default-IO-layers-and-the-open-pragma"><a id="Default"></a>Default IO layers and the open pragma</h2>

<p>If you have Perl 5.10 or later, file input/output methods (<code>slurp</code>, <code>spew</code>, etc.) and high-level handle opening methods ( <code>filehandle</code>, <code>openr</code>, <code>openw</code>, etc. ) respect default encodings set by the <code>-C</code> switch or lexical <a href="https://metacpan.org/pod/open">open</a> settings of the caller. For UTF-8, this is almost certainly slower than using the dedicated <code>_utf8</code> methods if you have <a href="https://metacpan.org/pod/Unicode::UTF8">Unicode::UTF8</a> or <a href="https://metacpan.org/pod/PerlIP::utf8_strict">PerlIP::utf8_strict</a>.</p>

<h1 id="TYPE-CONSTRAINTS-AND-COERCION"><a id="TYPE"></a>TYPE CONSTRAINTS AND COERCION</h1>

<p>A standard <a href="https://metacpan.org/pod/MooseX::Types">MooseX::Types</a> library is available at <a href="https://metacpan.org/pod/MooseX::Types::Path::Tiny">MooseX::Types::Path::Tiny</a>. A <a href="https://metacpan.org/pod/Type::Tiny">Type::Tiny</a> equivalent is available as <a href="https://metacpan.org/pod/Types::Path::Tiny">Types::Path::Tiny</a>.</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p>These are other file/path utilities, which may offer a different feature set than <code>Path::Tiny</code>.</p>

<ul>

<li><p><a href="https://metacpan.org/pod/File::chmod">File::chmod</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/File::Fu">File::Fu</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/IO::All">IO::All</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/Path::Class">Path::Class</a></p>

</li>
</ul>

<p>These iterators may be slightly faster than the recursive iterator in <code>Path::Tiny</code>:</p>

<ul>

<li><p><a href="https://metacpan.org/pod/Path::Iterator::Rule">Path::Iterator::Rule</a></p>

</li>
<li><p><a href="https://metacpan.org/pod/File::Next">File::Next</a></p>

</li>
</ul>

<p>There are probably comparable, non-Tiny tools. Let me know if you want me to add a module to the list.</p>

<p>This module was featured in the <a href="http://www.perladvent.org/2013/2013-12-18.html">2013 Perl Advent Calendar</a>.</p>

<h1 id="SUPPORT">SUPPORT</h1>

<h2 id="Bugs-/-Feature-Requests"><a id="Bugs"></a><a id="Bugs---Feature-Requests"></a>Bugs / Feature Requests</h2>

<p>Please report any bugs or feature requests through the issue tracker at <a href="https://github.com/dagolden/Path-Tiny/issues">https://github.com/dagolden/Path-Tiny/issues</a>. You will be notified automatically of any progress on your issue.</p>

<h2 id="Source-Code"><a id="Source"></a>Source Code</h2>

<p>This is open source software. The code repository is available for public review and contribution under the terms of the license.</p>

<p><a href="https://github.com/dagolden/Path-Tiny">https://github.com/dagolden/Path-Tiny</a></p>

<pre><code>  git clone https://github.com/dagolden/Path-Tiny.git</code></pre>

<h1 id="AUTHOR">AUTHOR</h1>

<p>David Golden &lt;dagolden@cpan.org&gt;</p>

<h1 id="CONTRIBUTORS">CONTRIBUTORS</h1>

<ul>

<li><p>Alex Efros &lt;powerman@powerman.name&gt;</p>

</li>
<li><p>Aristotle Pagaltzis &lt;pagaltzis@gmx.de&gt;</p>

</li>
<li><p>Chris Williams &lt;bingos@cpan.org&gt;</p>

</li>
<li><p>Dan Book &lt;grinnz@grinnz.com&gt;</p>

</li>
<li><p>Dave Rolsky &lt;autarch@urth.org&gt;</p>

</li>
<li><p>David Steinbrunner &lt;dsteinbrunner@pobox.com&gt;</p>

</li>
<li><p>Doug Bell &lt;madcityzen@gmail.com&gt;</p>

</li>
<li><p>Elvin Aslanov &lt;rwp.primary@gmail.com&gt;</p>

</li>
<li><p>Flavio Poletti &lt;flavio@polettix.it&gt;</p>

</li>
<li><p>Gabor Szabo &lt;szabgab@cpan.org&gt;</p>

</li>
<li><p>Gabriel Andrade &lt;gabiruh@gmail.com&gt;</p>

</li>
<li><p>George Hartzell &lt;hartzell@cpan.org&gt;</p>

</li>
<li><p>Geraud Continsouzas &lt;geraud@scsi.nc&gt;</p>

</li>
<li><p>Goro Fuji &lt;gfuji@cpan.org&gt;</p>

</li>
<li><p>Graham Knop &lt;haarg@haarg.org&gt;</p>

</li>
<li><p>Graham Ollis &lt;plicease@cpan.org&gt;</p>

</li>
<li><p>Ian Sillitoe &lt;ian@sillit.com&gt;</p>

</li>
<li><p>James Hunt &lt;james@niftylogic.com&gt;</p>

</li>
<li><p>John Karr &lt;brainbuz@brainbuz.org&gt;</p>

</li>
<li><p>Karen Etheridge &lt;ether@cpan.org&gt;</p>

</li>
<li><p>Mark Ellis &lt;mark.ellis@cartridgesave.co.uk&gt;</p>

</li>
<li><p>Martin H. Sluka &lt;fany@cpan.org&gt;</p>

</li>
<li><p>Martin Kjeldsen &lt;mk@bluepipe.dk&gt;</p>

</li>
<li><p>Mary Ehlers &lt;regina.verb.ae@gmail.com&gt;</p>

</li>
<li><p>Michael G. Schwern &lt;mschwern@cpan.org&gt;</p>

</li>
<li><p>Nicolas R &lt;nicolas@atoomic.org&gt;</p>

</li>
<li><p>Nicolas Rochelemagne &lt;rochelemagne@cpanel.net&gt;</p>

</li>
<li><p>Nigel Gregoire &lt;nigelgregoire@gmail.com&gt;</p>

</li>
<li><p>Philippe Bruhat (BooK) &lt;book@cpan.org&gt;</p>

</li>
<li><p>regina-verbae &lt;regina-verbae@users.noreply.github.com&gt;</p>

</li>
<li><p>Roy Ivy III &lt;rivy@cpan.org&gt;</p>

</li>
<li><p>Shlomi Fish &lt;shlomif@shlomifish.org&gt;</p>

</li>
<li><p>Smylers &lt;Smylers@stripey.com&gt;</p>

</li>
<li><p>Tatsuhiko Miyagawa &lt;miyagawa@bulknews.net&gt;</p>

</li>
<li><p>Toby Inkster &lt;tobyink@cpan.org&gt;</p>

</li>
<li><p>Yanick Champoux &lt;yanick@babyl.dyndns.org&gt;</p>

</li>
<li><p>&#xAE40;&#xB3C4;&#xD615; - Keedi Kim &lt;keedi@cpan.org&gt;</p>

</li>
</ul>

<h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1>

<p>This software is Copyright (c) 2014 by David Golden.</p>

<p>This is free software, licensed under:</p>

<pre><code>  The Apache License, Version 2.0, January 2004</code></pre></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Path::Tiny, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Path::Tiny</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Path::Tiny</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Path::Tiny.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
